monurakkaya/laravel-alert

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.1) of this package.

Simple session alerts for Laravel

1.0.1 2018-08-19 02:24 UTC

This package is auto-updated.

Last update: 2022-02-14 23:20:47 UTC


README

composer require monurakkaya/laravel-alert
php artisan vendor:publish --tag=laravel-alert

Usage

Include the package's master blade page to your layout

@include('laravel-alert::master')

Helpers

success($message, $title=NULL)
//success('Hi') --> Hi, Success!

error($message, $title=NULL)
//error('Ops!') --> Ops!, There is a Problem!

You can override the default title by passing second argument to success or error functions

error('What are you doing!!!', 'Ops!')

Custom Error

Quick Messages

These messages are time savers for fully crud applications.

success_for_create() //Data has been created
success_for_update() //Data has been updated
success_for_delete() //Data has been deleted

Translations

Refer to /resources/lang/en/laravel-alert.php

Other Options

Refer to /config/laravel-alert.php to change default error and success css classes