PHP code example of godforhire / toast

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

    

godforhire / toast example snippets


public function store()
{
    toast('Toast message!');

    return home();
}

toast('Toast message 1')->info();
toast('Toast message 2')->warning()->important();
toast('Toast message 3')->warning()->important();

return redirect('somewhere');

toast('Toast message 1')->info();
toast()->overlay('Toast message', 'Notice')->important();

return redirect('somewhere');
bash
php artisan vendor:publish --provider="godforhire\Toast\ToastServiceProvider"