File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 89
89
| Asset authorisation
90
90
|--------------------------------------------------------------------------
91
91
|
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
97
98
*/
98
99
'asset_authorisation ' => [
99
100
//'gate' => 'asset-access',
You can’t perform that action at this time.
0 commit comments