Обновление Laravel от запроса
$affected = DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
Alberto Peripolli
$affected = DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
$count = ModelName::where('id',$id)->count();
use Illuminate\Support\Facades\DB;
$users = DB::table('users')->count();
use Illuminate\Support\Facades\DB;
$users = DB::table('users')->count();
$variabel = Model::all();
View
$variabel->count();