-
Notifications
You must be signed in to change notification settings - Fork 5
Installation
Emeka Mbah edited this page Sep 30, 2024
·
5 revisions
composer require digitlimit/alert php artisan vendor:publish --provider="Digitlimit\Alert\AlertServiceProvider"<x-alert-message />Example:
@extends('layouts.default')
@section('content')
<div class="container-xxl flex-grow-1 container-p-y">
<div class="row">
<div class="col-md-12">
<x-alert-message />
</div>
</div>
<div class="row">
@include('form.profile')
</div>
</div>
@include('partials.footer')
@endsectionNB: Currently, the alert components are built with Twitter Bootstrap 5, and can be customized to use other CSS classes. We need to ensure Bootstrap is included on the page.
<?php
namespace App\Http\Controllers;
use Alert;
class DashboardController extends Controller
{
public function index()
{
Alert::message('Welcome! Please complete your profile')
->info()
->flash();
return view('home');
}
}