Skip to content

Commit

Permalink
Merge pull request #1015 from sayedulsayem/sayem-laravel
Browse files Browse the repository at this point in the history
model updateorcreate option added
  • Loading branch information
sabbirshawon authored Oct 7, 2023
2 parents 9a7e094 + adb473d commit dd59482
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 dd59482

Please sign in to comment.