Skip to content

Commit bf01607

Browse files
authored
Update README.md
1 parent 5360bf6 commit bf01607

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ Then add the following in your `app/Providers/AuthServiceProvider.php`:
2626

2727
```php
2828
/**
29-
* Register any authentication / authorization services.
29+
* Get the policies defined on the provider.
3030
*
31-
* @return void
31+
* @return array<class-string, class-string>
3232
*/
33-
public function boot()
33+
public function policies()
3434
{
3535
$this->policies[config('laravel-media-secure.model')] = config('laravel-media-secure.policy');
36+
37+
return $this->policies;
3638
}
3739
```
3840

0 commit comments

Comments
 (0)