eloquent count() code example Example: count in laravel' $count = ModelName::where('id',$id)->count();