Answers for "eloquient laravel select all"

PHP
2

get all data eloquent laravel

Blog::all();

//example usage.
$posts = Blog::all();
Posted by: Guest on October-28-2020
1

update query laravel

$update = \DB::table('student') ->where('id', $data['id']) ->limit(1) ->update( [ 'name' => $data['name'], 'address' => $data['address'], 'email' => $data['email'], 'contactno' => $data['contactno'] ]);
Posted by: Guest on January-09-2021

Code answers related to "eloquient laravel select all"

Browse Popular Code Answers by Language