Create table with name test_logs with column name as id, logs.
set id to auto-increment and logs with longtext.
// add DB class at top of the class.
use DB;
$d = json_encode($this->data);
DB::connection('logs')->table('test_logs')->insert([
'logs'=>$d
]);
Comments
Post a Comment