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