laravel select only if related model exists code example Example: laravel check if model relation exists $model->relation()->exists()