Skip to content

Some tools for Laravel: flash messages, breadcrumb...

License

Notifications You must be signed in to change notification settings

agence-webup/laravel-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-tools

Some tools for Laravel: flash messages, breadcrumb...

composer require webup/laravel-tools

Provider

Webup\LaravelTools\ToolsServiceProvider::class,

You can customize view

php artisan vendor:publish --tag=tools

Breadcrumb

    // Facade
    'Breadcrumb' => Webup\LaravelTools\Facades\Breadcrumb::class,

    // Make a breadcrumb
    Breadcrumb::push('home', route('home'))
        ->push('title', 'url');

    // include breadcrumb view
    @include('tools::breadcrumb')

Flash message

    // Facade
    'Flash' => Webup\LaravelTools\Facades\Flash::class,

    // Push message
    Flash::info('info message');
    Flash::success('success message');
    Flash::error('error message');
    // Push message with key
    Flash::success('success message', 'confirmation');

    // include flash view
    @include('tools::flash')
    // include flash view for key
    @include('tools::flash', ['key' => 'confirmation'])

About

Some tools for Laravel: flash messages, breadcrumb...

Resources

License

Stars

Watchers

Forks

Packages

No packages published