Question:How can you insert a new record in the table in laravel? 

A $row=new MyModel; $row->field1=’Field1 Value’ $row->save() 

B $row=new MyModel; $row->field1=’Field1 Value’ $row->insert() 

C $row=new MyModel; $row->field1=’Field1 Value’ $row->create() 

D $row=new MyModel; $row->field1=’Field1 Value’ $row->add() 

+ Answer
+ Report
Total Preview: 938

Copyright © 2024. Powered by Intellect Software Ltd