laravel check if if the relation has any data or not in controller code example Example: laravel check if model relation exists $model->relation()->exists()