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