Version 2.0
Alert is a Laravel package for displaying different types of messages in Laravel application views. It's designed to make flashing messages in Laravel Applications a breeze, with a lot of easy-to-use and fluent methods.
The alert is pretty easy to use, customize and extend. There are 6 out-of-box alert types, which include
Message Alert
Sticky Alert
Field Alert
FieldBag Alert
Modal Alert
Notify Alert
Fortunately, you can easily create custom types. The package can be easily extended with macros.
composer require digitlimit/alert
<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')
@endsection
NB: At the moment the alert components are built with Twitter Bootstrap 5, and can be customized to use other CSS classes. 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');
}
}
Learn how to get started with Alert and then dive deeper into other and advanced topics:
Coming soon
We will behave ourselves if you behave yourselves. For more details see our CODE_OF_CONDUCT.md.
Please read through our contributing guidelines. Included are directions for opening issues.
The alert package is currently maintained by Emeka Mbah. If you have any questions please don't hesitate to create an issue on this repo.
Alert will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:
<major>.<minor>.<patch>
For more information on SemVer, please visit https://semver.org.
- Any release may update the design, look-and-feel, or branding of an existing icon
- We will never intentionally release a
patch
version update that breaks backward compatibility - A
minor
release may include backward-incompatible changes but we will write clear upgrading instructions in UPGRADING.md - A
minor
orpatch
release will never remove icons - Bug fixes will be addressed as
patch
releases unless they include backward incompatibility then they will beminor
releases
Alert Free is free, open source, and GPL friendly. You can use it for commercial projects, open source projects, or really almost whatever you want.
- Code — MIT License
- In the Alert Free download, the MIT license applies all PHP files.
We've kept attribution comments terse, so we ask that you do not actively work to remove them from files, especially code. They're a great way for folks to learn about Alert.