Closed mstrihi closed 1 month ago
API/User Base will coming on the next version
thank you so much, when you think this release will be available? because I was thinking to use https://filamentphp.com/plugins/ralphjsmit-media-library-manager
hi, @mstrihi it can be working today. and we are handling our file manager in a different way than Ralph does.
Hi @3x1io, thanks for replay. you mean you will publish those changes today?
now you can allow user to access selected folder and restract user to access each other folders if the folder is not public on /app/Providers/Filament/AdminPanelProvider.php
->plugin(
\TomatoPHP\FilamentMediaManager\FilamentMediaManagerPlugin::make()
->allowUserAccess()
)
NOTE don't forget to migrate after update the plugin
now you can access your media and folders using API you have 2 endpoints
/api/folders
to get all folders/api/folders/{id}
to get folder by id with sub folders and media filesto allow this feature you need to publish the config file by use this command
php artisan vendor:publish --tag="filament-media-manager-config"
then you can set api.active
to true
on the config file
'api' => [
"active" => true,
],
@3x1io thank you so much what I was meaning, for example admin add folders / files and can assign users for specific folder / file but employee when login for example should only see the folders / files was assign for him only that possible now? many thanks
https://github.com/user-attachments/assets/cb87f996-575f-4cde-a1d1-4a11e0122c95
yes, it's very easy just edit the folder and select the access.
@3x1io thank you so much for your amazing work :) just 1 more question that effect the api as well right? and if I have 2 different tables in DB for users can I override this filed to select from employee instead of users?
thank you
there is any way to assign users to folder / files? when I login to another user I can only see folders / files assigned to me only? and there is any API ready to use?
many thanks