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