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