File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Handlers ;
4+
5+ class ConfigHandler
6+ {
7+ public function userField ()
8+ {
9+ return auth ()->user ()->id ;
10+ }
11+ }
Original file line number Diff line number Diff line change 11<?php
22
3- namespace App \Handlers ;
3+ namespace Unisharp \ Laravelfilemanager \Handlers ;
44
55class ConfigHandler
66{
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function boot()
3737 ], 'lfm_view ' );
3838
3939 $ this ->publishes ([
40- __DIR__ .'/Handlers ' => base_path ('app/Handlers ' )
40+ __DIR__ .'/CustomHandlers ' => base_path ('app/Handlers ' )
4141 ], 'lfm_handler ' );
4242 }
4343
Original file line number Diff line number Diff line change 3333 'allow_share_folder ' => true ,
3434
3535 // Flexibla way to customize client folders accessibility
36- // You can extend ConfigHandler class and rewrite userField function in class
36+ // If you want to customize client folders, publish tag="lfm_handler"
37+ // Then you can rewrite userField function in App\Handler\ConfigHander class
38+ // And set 'user_field' to App\Handler\ConfigHander::class
3739 // Ex: The private folder of user will be named as the user id.
38- 'user_field ' => App \Handlers \ConfigHandler::class,
40+ 'user_field ' => Unisharp \ Laravelfilemanager \Handlers \ConfigHandler::class,
3941
4042 /*
4143 |--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments