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