Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Latest commit

 

History

History
49 lines (33 loc) · 1000 Bytes

readme.md

File metadata and controls

49 lines (33 loc) · 1000 Bytes

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