Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwedgbury authored Nov 8, 2023
1 parent 4ac098a commit 8be7fe0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down

0 comments on commit 8be7fe0

Please sign in to comment.