Skip to content

Commit

Permalink
model updateorcreate option added
Browse files Browse the repository at this point in the history
  • Loading branch information
sayedulsayem committed Oct 6, 2023
1 parent 5540fb0 commit adb473d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/laravel-framework.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@
"definition": "মডেল দিয়ে CREATE করতে চাইলে ",
"code": "Model::create(pass your data array);"
},
{
"definition": "মডেল দিয়ে ড্যাটা থাকলে আপডেট না থাকলে তৈরি করতে। (১ম [] শর্ত ২য় [] ড্যাটা) ",
"code": "Model::updateOrCreate(['col' => 'val', 'col-2' => 'val-2'],['col-3' => 'val-3', 'col-4' => 'val-4']);"
},
{
"definition": "মডেল দিয়ে SELECT করতে চাইলে ",
"code": "Model::select('columnName','columnName')->get();"
Expand Down

0 comments on commit adb473d

Please sign in to comment.