PHP code example of depsimon / laravel-alerts
1. Go to this page and download the library: Download depsimon/laravel-alerts 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/ */
depsimon / laravel-alerts example snippets
public function show()
{
alert('Resource Found!');
return back();
}
alert_success('Account Created with Success!');
alert_info('Welcome aboard!');
return redirect('home');
bash
php artisan vendor:publish --provider="Depsimon\Alerts\AlertsServiceProvider" --tag="components"