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