get rows count in laravel best practices code example Example: get count laravel $count = Model::where('status','=','1')->count();