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