-
-
Notifications
You must be signed in to change notification settings - Fork 182
Async Update The Manager
to make the manager as much reliable as possible, we need a way to update the manager files list when any operation is made "upload, delete, rename, etc..".
so up until now every user was on his own, until the cache is cleared or he tries to do something on an item that isnt really there & get hit with an error.
so to fix all of that we now use websockets
through laravel-echo, which is optional but if you want to get the best experience possible, then make sure to follow the docs and install it.
the operations covered are
- new folder
- upload
- image edit
- rename
- delete
- move/copy
- lock/unlock
- change visibility
-
enable_broadcasting must be on.
-
the manager broadcast use ->toOthers() to make sure the user don't get a double modification when he make any operation,
so in-order for that to work make sure that you registerecho
afteraxios
, otherwise the laravel defaults wont work.