how to check relation as data or not in laravel code example Example: laravel check if model relation exists $model->relation()->exists()