laravel parameter model check if user has relationship record code example Example: laravel check if model relation exists $model->relation()->exists()