binarycabin/laravel-toolbelt

A handful of helper components and for Laravel

1.0.1 2019-03-11 15:33 UTC

This package is auto-updated.

Last update: 2024-10-12 05:21:13 UTC


README

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