Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.68 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.68 KB

Laravel Toolbelt

Build Status StyleCI Latest Stable Version Total Downloads

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.

License

MIT