All Projects → WhereIsLucas → laravel-bootstrap-toasts

WhereIsLucas / laravel-bootstrap-toasts

Licence: other
Bootstrap Toast made easy for Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to laravel-bootstrap-toasts

Startbootstrap One Page Wonder
A simple, one page, Bootstrap HTML website template created by Start Bootstrap
Stars: ✭ 249 (+857.69%)
Mutual labels:  bootstrap4, bootstrap-4
smaller-sites
Smaller Sites is a small BUT Powerful, free and easy to use drag and drop builder for blogs, websites or e-commerce stores. Designed for everyone Developers and non Developers. You can use it to design your next website. The goal is to create something like webflow
Stars: ✭ 27 (+3.85%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Sb Admin
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 2,861 (+10903.85%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Blog Post
A Bootstrap HTML template for blog posts - created by Start Bootstrap
Stars: ✭ 199 (+665.38%)
Mutual labels:  bootstrap4, bootstrap-4
template-mundana-bootstrap-html
Free blogging template by Sal (@wowthemesnet). Beautifully crafted with the latest technologies, SASS & Bootstrap 4.1.3, Mundana is the perfect design for your professional blog.
Stars: ✭ 39 (+50%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Blog Home
A Bootstrap HTML template for blog homepages - created by Start Bootstrap
Stars: ✭ 215 (+726.92%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-small-business
A Bootstrap HTML template for creating marketing websites for small businesses - created by Start Bootstrap
Stars: ✭ 186 (+615.38%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Thumbnail Gallery
A Bootstrap thumbnail gallery template created by Start Bootstrap
Stars: ✭ 166 (+538.46%)
Mutual labels:  bootstrap4, bootstrap-4
hugo-lime
Hugo Lime is a business theme for GoHugo by https://uicard.io
Stars: ✭ 31 (+19.23%)
Mutual labels:  bootstrap4, bootstrap-4
MPACore.PhoneBook
采用MVC+jQuery 的方式进行开发。
Stars: ✭ 51 (+96.15%)
Mutual labels:  bootstrap4, bootstrap-4
Holy Grail Markup
All CSS methodologies compared examples at one place.
Stars: ✭ 197 (+657.69%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-1-col-portfolio
A one column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 60 (+130.77%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Freelancer
Start Bootstrap is an open source library of free Bootstrap themes and templates. All of the free themes and templates on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 2,304 (+8761.54%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Bare
A bare Bootstrap HTML starter template for rapid development - created by Start Bootstrap
Stars: ✭ 235 (+803.85%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Full Slider
A full page image slider Bootstrap HTML template created by Start Bootstrap
Stars: ✭ 189 (+626.92%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-portfolio-item
A Bootstrap portfolio item page template created by Start Bootstrap
Stars: ✭ 56 (+115.38%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Creative
Start Bootstrap is an open source library of free Bootstrap themes and templates. All of the free themes and templates on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 1,900 (+7207.69%)
Mutual labels:  bootstrap4, bootstrap-4
Bootstrap Dark
Bootstrap 4 dark theme that supports togging dark/light themes as well. There is no fluff, it changes the color of Bootstrap and that's it, no new thing to learn or unlearn, just Bootstrap, but Dark!
Stars: ✭ 158 (+507.69%)
Mutual labels:  bootstrap4, bootstrap-4
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+92.31%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-logo-nav
A Bootstrap navigation template with a logo in the navigation bar - created by Start Bootstrap
Stars: ✭ 65 (+150%)
Mutual labels:  bootstrap4, bootstrap-4

Bootstrap flash messages for your Laravel app

This package, based on laracasts/flash provides an interface for Bootstrap 4.2 toast messages.

Installation

Get the package with composer

composer require whereislucas/laravel-bootstrap-toasts

If you are not using Laravel 5.5 or higher, include the service provider within your config/app.php file.

'providers' => [
    WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider::class,
];

This package is made for Bootstrap 4.2 and higher, be sure to include the css and js files on your page.

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" >
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>

Usage

First of all, include the snippet in your Blade templates

@include('laravel-bootstrap-toasts::message')

Then, in your controller, call the toast() method to create a toast message.

public function edit()
{
    toast('Post edited!');
    return redirect(route('posts.list'));
}

The toast method accepts the title and level optional arguments :

toast('message','level','title')

There are a few quick methods to modify the toast:

  • toast('Message')->success(): Set the toast level as "success".

  • toast('Message')->info(): Set the toast level as "info".

  • toast('Message')->error(): Set the toast level as "danger".

  • toast('Message')->warning(): Set the toast level as "warning".

  • toast('Message')->title("Toast title"): Set the toast title.

  • toast('Message')->important(): Add a close button to the toast.

Configuration & personalization

You can publish the configuration file to tweak the position of the toast or the default value for 'autohide'.

php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="config"

You can publish the view and tweak it if you want!

php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="views"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].