PHP code example of whereislucas / laravel-bootstrap-toasts

1. Go to this page and download the library: Download whereislucas/laravel-bootstrap-toasts library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

whereislucas / laravel-bootstrap-toasts example snippets


'providers' => [
    WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider::class,
];

public function edit()
{
    toast('Post edited!');
    return redirect(route('posts.list'));
}

toast('message','level','title')
bash
php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="config"
bash
php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="views"