diff --git a/README.md b/README.md index 767cb09..2ff437d 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,14 @@ Gate::define("view-mailweb", function ($user) { }); ``` +Although it can be dangerous, should you want to allow access to anyone (regardless of authentication) then change the above code to + +```php +Gate::define("view-mailweb", function ($user = null) { + return true; +}); +``` + To view emails then go to ```