Package Data | |
---|---|
Maintainer Username: | agencewebup |
Maintainer Contact: | baptiste@agence-webup.com (Baptiste DUCATEL) |
Package Create Date: | 2017-04-14 |
Package Last Update: | 2021-05-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:18:33 |
Package Statistics | |
---|---|
Total Downloads: | 3,142 |
Monthly Downloads: | 30 |
Daily Downloads: | 1 |
Total Stars: | 0 |
Total Watchers: | 8 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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
// Facade
'Breadcrumb' => Webup\LaravelTools\Facades\Breadcrumb::class,
// Make a breadcrumb
Breadcrumb::push('home', route('home'))
->push('title', 'url');
// include breadcrumb view
@include('tools::breadcrumb')
// 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'])