PHP code example of bpocallaghan / alert
1. Go to this page and download the library: Download bpocallaghan/alert 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/ */
bpocallaghan / alert example snippets
public function index()
{
// helper function - default to the 'info'
alert('Title', 'Lorem Ipsum');
// return object first
alert()->info('Title', 'Lorem Ipsum');
// via the facade
Alert::info('Title', 'Lorem Ipsum');
return view('home');
}
bash
php artisan vendor:publish --provider="Bpocallaghan\Alert\AlertServiceProvider"