how to check if there is data before get with relation laravel code example Example: laravel check if model relation exists $model->relation()->exists()