Laravel Model allows two functions for inserting the values to the database table. They are
Create: User::create(['id'=>1,'name'=>'stack']);
Insert: User::insert(['id'=>2,'name'=>'overflow']);
I found they perform similar operations. What's difference between them?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2l2zzOV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire