alaame / setting
This package tends to add settings functionality to laravel applications
0.2.6
2023-07-17 19:14 UTC
Requires
- php: ^7.2|^8.0
- intervention/image: ^2.5
- laracasts/flash: ^3.1
- spatie/laravel-permission: ^3.6|^4.0|^5.0|^6.0
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: ^3.8
This package is auto-updated.
Last update: 2024-04-17 21:01:32 UTC
README
This package tends to add settings functionality to laravel applications
Its built on top of laravel voyager package
Requirements
- PHP 7.1 or higher.
- Laravel 5.8 or higher.
- Tailwind installed.
- Spatie/permission installed and have two rules:
- developer role : responsible for adding new settings.
- admin role: responsible for updating/deleting setting values.
Installation
- run
compose require alaame/setting
- run
php artisan migrate
- add
AMESetting::webRoutes();
in web.php file in whatever place you want. - access setting admin page using
/setting
and it's dependent on where you putAMESetting::routes();
You can check the right path usingphp artisan route:list
.
usage
After adding new options from setting admin page, you can access your setting using global helper function setting('setting_name')
or using blade directive @setting('setting_name')