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