how to count return number of rows in laravel controller code example Example: get count laravel $count = Model::where('status','=','1')->count();