Support the ongoing development of Laravel.io →
Laravel Views Blade
Last updated 2 years ago.
0

Tremendous efforts go to evolve through to the notification salutes the way to define solutions definitely look forward to more levels updates or connect with official writers hub like custom dissertation writers packed knowledge deals.

0

Install toastr package using composer.

$laravel_project> composer require yoeunes/toastr Step 2: Include packages css and js file into layout.blade.php file or your view file where do you need to display toastr message.

@jquery - skip if already have. @toastr_css - toastr css lib. @toastr_js - toastr js lib. @toastr_render - for render toastr notification Step 3: Now add the service provider to config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

'providers' => [ ... Yoeunes\Toastr\ToastrServiceProvider::class ... ]; Step 4: Call toastr method into controller file.

toastr()->info('User has been created!') //set message with title toastr()->success('Have fun storming the castle!', 'Miracle Max Says') Good luck!!

Laravel Development Services

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Marwin sanmarwino Joined 11 Apr 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.