Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

Update Query in Laravel 5

by
Category:laravel
mysql laravel
Update Query in Laravel 5

The query builder can also update existing records using the update method. The update method, like the insert method, accepts an array of column and value pairs containing the columns to be updated.

$query_update =  DB::table('cart_products')
   ->where('user_id', $id)
   ->update(['status' => '1']);

Insert query in Laravel 5 using Model

How to make Condition based query in Laravel 5 using Model

Insert Query in Laravel 5

Delete Query in Laravel 5


0 Comments


Html code work in comment box


Related Post