binarycabin / laravel-toolbelt
A handful of helper components and for Laravel
1.0.1
2019-03-11 15:33 UTC
Requires (Dev)
- orchestra/testbench: ^3.5
- phpunit/phpunit: >5.0
This package is auto-updated.
Last update: 2024-12-12 05:35:33 UTC
README
A handful of helper components and for Laravel
Installation
composer require binarycabin/laravel-toolbelt
Usage
Commands
init:roles
If using spatie/laravel-permission and binarycabin/options, you can auto create your default roles using the command:
php artisan init:roles
Note you should also have use HasRoles;
set on your User Model, and an array of options ready at \App\Options\Role;
make:user
Create a new user via cl using
php artisan make:user
If using spatie/laravel-permission you can set a role for this user via:
php artisan make:user --role=admin
Components:
Panels
@component('toolbelt::components.panel',['title'=>'Panel Title'])
Panel Body Content
@endcomponent
Tables
(coming soon)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.