# How to remove global scopes from eager loaded relationships in Laravel

> How to remove global scopes from an eager loaded relationship without defining a new one. A short Today I Learned note from the Graffino team.

- URL: https://graffino.com/til/how-to-remove-global-scopes-from-eager-loaded-relationships-in-laravel
- Author: Denisa Halmaghi
- Channel: laravel
- Published: 2021-07-01
- Updated: 2024-11-08

```php
Model::with([
   "relationship" => function ($query) {
       return $query->withoutGlobalScope(MyScope::class);
   },
]);
```
