Skip to content

Commit a84e67f

Browse files
authored
Update README.md
1 parent 26c3e61 commit a84e67f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ php artisan waterline:install
1616

1717
Waterline exposes a dashboard at the `/waterline` URL. By default, you will only be able to access this dashboard in the local environment. However, within your `app/Providers/WaterlineServiceProvider.php` file, there is an authorization gate definition. This authorization gate controls access to Waterline in non-local environments.
1818

19+
```
20+
Gate::define('viewWaterline', function ($user) {
21+
return in_array($user->email, [
22+
'admin@example.com',
23+
]);
24+
});
25+
```
26+
27+
This will allow only the single admin user to access the Waterline UI.
28+
29+
1930
## Upgrading Waterline
2031

2132
After upgrading Waterline you must publish the latest assets.

0 commit comments

Comments
 (0)