Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed May 5, 2024
1 parent e841fe2 commit af2dcb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Root
*
* @var string
*/
public const VERSION = '2.2.15';
public const VERSION = '2.2.16';

/**
* The registered booting callbacks.
Expand Down
4 changes: 4 additions & 0 deletions stubs/RootServiceProvider.stub
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class RootServiceProvider extends ServiceProvider
*/
public function boot(): void
{
Gate::define('viewRoot', static function (User $user): bool {
return false;
});

Root::instance()->resources->register([
new UserResource(),
]);
Expand Down

0 comments on commit af2dcb0

Please sign in to comment.