create
Method 1
$data = new MODEL_NAME;
$data->column1 = 'value1';
$data->column2 = 'value2';
$data->column3 = 'value3';
.........................
.........................
$data->save();
Mass Assignment
MODEL_NAME::create([
'column1' => 'value1',
'column2' => 'value2',
'column3' => 'value3',
[....] => [....],
...................
...................
]);
To push data in table by this way , you have to write a protected property in the model class.
protected $fillable = [ 'column1' , 'column2' , 'column3' , [....] ];
If you would like to make all attributes mass assignable, you may define the $guarded property as an empty array:
protected $guarded = [];