laravel check if relation exist code example Example: laravel check if model relation exists $model->relation()->exists()