PHP code example of tjgazel / laravel-bs3-alert
1. Go to this page and download the library: Download tjgazel/laravel-bs3-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/ */
tjgazel / laravel-bs3-alert example snippets
// config/app.php
'providers' => [
// ...
TJGazel\Bs3Alert\Bs3AlertServiceProvider::class,
],
'aliases' => [
// ...
'Bs3Alert' => TJGazel\Bs3Alert\Facades\Bs3Alert::class,
],
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use TJGazel\Bs3Alert\Facades\Bs3Alert;
class HomeController extends Controller
{
public function index()
{
Bs3Alert::info(['welcome!']);
return view('dashoard.index');
}
}