Closed gvanto closed 10 months ago
Hi @gvanto
Thank you for using the package and sending through your ideas/issues, it is much appreciated!
I'll address the two requests below:
1) Export button next to the import button I would argue this lies outside of the scope of an import operation and perhaps should lie within it's own export operation that handles more complex configuration than what backpack's standard export buttons allow for.
I'll consider building this out as a seperate package if I find the time to do so! Thank you for the suggestion.
2) RBAC - Hiding the import button Yes, I actually am not sure why I didn't add this option as this is standard within the other default CRUD operations. I will add the ability to deny access to the operation via:
CRUD::denyAccess('import');
I will close this issue once the second feature has been completed.
Thanks again!
Hi @redsquirrelstudio
Export button - agreed it's probably outside scope however I imagine just having a simple export (just using the defined columns, use them as headers and export as CSV, nothing fancy) would be a nice addition to this package (didn't realize Backpack has export thing, it's however paid for and very fancy, Excel, etc, etc)
Brilliant thanks so much, that denyAccess feature would be perfect!
Have a great day Lewis and thanks again for awesome package!
Hi @gvanto, support for CRUD::denyAcccess has been added in version 1.6.3 :)
Hi @gvanto, support for CRUD::denyAcccess has been added in version 1.6.3 :)
Amazing @redsquirrelstudio (updated to 1.6.4 and it's working), thanks a million!
Hi @gvanto
Hope you're doing well,
I just wanted to let you know that I have published a new package that handles full exports: https://github.com/redsquirrelstudio/laravel-backpack-export-operation
Hope this helps! :)
Just awesome mate, great stuff!!
What would be really great for this package is a [Export {modelName}s] button (optional) to be listed next to the "Import {modelName}s" button!
What do you think?
For RBAC purposes, would it be possible to optionally show/hide the above 2 buttons (and restrict access) based on a user's role? (for example, an "Admin" user should be able to import + export CSVs, while an "Editor" user can only export CSVs).
(Would like to use https://github.com/Laravel-Backpack/PermissionManager for RBAC)