Version 2.0, (*1)
Alert is 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., (*2)
Quick Start
- Install Alert with composer:
composer require digitlimit/alert
- Somewhere in the blade template
<x-alert-normal />
Example:, (*3)
@extends('layouts.default')
@section('content')
@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., (*4)
- Somewhere in the application
<?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');
}
}
- Result
, (*5)
Documentation
Learn how to get started with Alert and then dive deeper into other and advanced topics:, (*6)
Complete documentation, (*7)
Change log
Coming soon, (*8)
Code of conduct
We will behave ourselves if you behave yourselves. For more details see our
CODE_OF_CONDUCT.md., (*9)
Contributing
Please read through our contributing guidelines. Included
are directions for opening issues., (*10)
Versioning
Alert will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered
with the following format:, (*11)
<major>.<minor>.<patch>
, (*12)
For more information on SemVer, please visit https://semver.org., (*13)
- 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
or patch
release will never remove icons
- Bug fixes will be addressed as
patch
releases unless they include backward
incompatibility then they will be minor
releases
License
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., (*14)
- 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., (*15)