PHP code example of simonmarcellinden / toast

1. Go to this page and download the library: Download simonmarcellinden/toast 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/ */

    

simonmarcellinden / toast example snippets


SimonMarcelLinden\Toast\ToastServiceProvider::class,

'Toast'  => SimonMarcelLinden\Toast\Facades\Toast::class,


    /** Route Example **/
    Route::get('/', function () {
        Toast::info('Messages in here', 'Title', ["positionClass" => "toast-top-right"]);
        return view('welcome');
    });
 php
php artisan vendor:publish