Skip to content

Commit 4197771

Browse files
authored
Update filament-flexible-blocks-asset-manager.php
1 parent 2b3fddd commit 4197771

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

config/filament-flexible-blocks-asset-manager.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@
8989
| Asset authorisation
9090
|--------------------------------------------------------------------------
9191
|
92-
| The assets URLs can be protected. This can be done in different ways:
93-
| 1. a gate, see https://laravel.com/docs/11.x/authorization#gates
94-
| You can define a gate that takes the asset record as argument.
95-
| 2. a policy, see https://laravel.com/docs/11.x/authorization#writing-policies
96-
| You can write a policy for the Asset model. The `view` policy will be used to authorise.
92+
| The assets URLs can be protected and access to the Filament can be configured.
93+
| You need to define a new model policy and add an extra function for the public
94+
| file access of the asset. The name of this function needs to be added to the key
95+
| 'gate'. The policy class needs to be added to the key 'policy'.
96+
| see https://laravel.com/docs/11.x/authorization#gates and
97+
| https://laravel.com/docs/11.x/authorization#writing-policies
9798
*/
9899
'asset_authorisation' => [
99100
//'gate' => 'asset-access',

0 commit comments

Comments
 (0)