php laravel query update row from table code example
Example 1: eloquent update row response
DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
Example 2: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();