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

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.


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


Sign in to participate in this thread!


Your banner here too?

Marwin sanmarwino Joined 11 Apr 2019


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

Your logo here?

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

© 2024 - All rights reserved.