Skip to content

Commit

Permalink
improve publish gate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkroneis committed Jul 22, 2024
1 parent 92f9642 commit 0ef72a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/commands/publish-gate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ applications which require specific authorization per application.
> [!NOTE]
> You need to add the `Support\\Beyond\\Gate` to your `AppServiceProvider`s `register` function:
> ```php
> use Illuminate\Contracts\Auth\Access\Gate as GateContract;
> use Support\Beyond\Gate;
>
> $this->app->singleton(GateContract::class, function ($app) {
> return new Gate($app, fn () => call_user_func($app['auth']->userResolver()));
> });
Expand Down

0 comments on commit 0ef72a4

Please sign in to comment.