Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/credential-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Xero::useModelStorage(Settings::first());

If you need to resolve a model depending on some application state such as the authenticated user, this should be added to [a custom middleware](https://laravel.com/docs/11.x/middleware#defining-middleware) instead of the app service provider, e.g.

```php
<?php

namespace App\Http\Middleware;
Expand All @@ -56,6 +57,7 @@ class ConfigureXeroMiddleware

}
}
```

By default, the package will use the `xero_credentials` field, Should you need to rename this field, you can do so by calling:

Expand Down