We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5360bf6 commit bf01607Copy full SHA for bf01607
README.md
@@ -26,13 +26,15 @@ Then add the following in your `app/Providers/AuthServiceProvider.php`:
26
27
```php
28
/**
29
- * Register any authentication / authorization services.
+ * Get the policies defined on the provider.
30
*
31
- * @return void
+ * @return array<class-string, class-string>
32
*/
33
-public function boot()
+public function policies()
34
{
35
$this->policies[config('laravel-media-secure.model')] = config('laravel-media-secure.policy');
36
+
37
+ return $this->policies;
38
}
39
```
40
0 commit comments