PHP code example of jalle19 / laravel-unshitty-flash

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

    

jalle19 / laravel-unshitty-flash example snippets


'providers' => [
	...
	Jalle19\Laravel\UnshittyFlash\FlashServiceProvider::class,
	...
]

$this->flashService->success($request, 'Some successful message');
$this->flashService->info($request, 'Some informational message');
$this->flashService->warning($request, 'Some warning');
$this->flashService->danger($request, 'Some dangerous message');

$this->flashService->info($request, 'Permanently visible message', true);

$this->flashService->message($request, 'Some rant about libraries', 'rant');
bash
php artisan vendor:publish --provider="Jalle19\Laravel\UnshittyFlash\FlashServiceProvider"