agilepixels/laravel-resource-abilities

Add abilities to Laravel API resources

v2.0 2023-01-21 10:17 UTC

This package is auto-updated.

Last update: 2024-11-21 13:57:20 UTC


README

Latest Version on Packagist Test Check & fix styling Total Downloads

If you build a web application with a separate frontend and backend, all kinds of information has to be transferred between these two parts. Part of this are your routes, but how do you share the authorized actions in the most convenient way? One quick note: from now on, we'll call these authorized actions "abilities". To share abilities, we use API resources. That way we can see the abilities the current user has for that resource.

Please read the full introduction and all documentation about this package in our GitHub Wiki.

Support us

Your support is most welcome! Feel free to send in any pull requests to improve this package. If you wish to contribute in any other way, do check out the "sponsor this package" to the right. We'd love to receive your support!

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.