Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-alert maintained by monurakkaya

Description
Simple session alerts for Laravel
Author
Last update
2018/08/19 04:24 (dev-master)
Links
Downloads
221

Comments
comments powered by Disqus

Installation

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