> For the complete documentation index, see [llms.txt](https://voyager-docs.devdojo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://voyager-docs.devdojo.com/1.2/customization/custom-guard.md).

# Custom guard

Starting with Voyager 1.2 you can define a (custom) guard which is used throughout Voyager.\
To do so, just bind your auth-guard to `VoyagerAuth`.\
Open your `AuthServiceProvider` and add the following to the register method:

```php
$this->app->singleton('VoyagerAuth', function () {
    return Auth::guard('your-custom-guard');
});
```

Now this guard is used instead of the default guard.
