Download the PHP package tjgazel/laravel-bs3-alert without Composer
On this page you can find all versions of the php package tjgazel/laravel-bs3-alert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tjgazel/laravel-bs3-alert
More information about tjgazel/laravel-bs3-alert
Files in tjgazel/laravel-bs3-alert
Package laravel-bs3-alert
Short Description Bootstrap 3 alerts for laravel 5.*
License MIT
Homepage https://github.com/tjgazel/laravel-bs4-alert
Informations about the package laravel-bs3-alert
Bootstrap 3 alerts for laravel 5.*
- Instalation
- Usage
- Tanks
Other packages:
- tjgazel/laravel-toastr - Toastr notifications for laravel 5.*
- tjgazel/laravel-bs4-alert - Bootstrap 4 alerts for laravel 5.*
Installation
1) Run composer require tjgazel/laravel-bs3-alert to include this in your project.
Laravel 5.5 or later will automatically discover the provider and the alias.
2) Optional: Laravel 5.4 and below
Add TJGazel\Bs3Alert\Bs3AlertServiceProvider::class to providers in config/app.php
Add 'Bs3Alert' => TJGazel\Bs3Alert\Facades\Bs3Alert::class to aliases in config/app.php.
3) Run php artisan vendor:publish --provider="TJGazel\Bs3Alert\Bs3AlertServiceProvider" --tag="config"
to publish the config file in config/bs3-alert.php.
4) Include @include('bs3-alert::template') somewhere in your template..
5) Optional: Run php artisan vendor:publish --provider="TJGazel\Bs3Alert\Bs3AlertServiceProvider" --tag="template"
to publish the template view.
Modify the published template located at resources/views/vendor/bs3-alert/template.php to your liking.
6) Optional: Modify the publish configuration file locate at config/bs3-alert.php to your liking.
Usage
Use the Toastr facade Bs3Alert:: or the helper function bs3Alert()-> to access the methods in this package.
Examples:
You can also chain multiple messages together using:
All methods