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