sweet-alert
sweet-alert copied to clipboard
Add view() Method Which Renders HTML Via A Blade View
Inspired by https://github.com/barryvdh/laravel-dompdf/, specifically the loadView
method in PDF.php
.
This allows you to specify a blade view for your alert, rather than hardcoding the HTML, which is useful anytime your HTML is more complex than a simple tag.
Usage:
use RealRashid\SweetAlert\Facades\Alert;
Alert::view('The Title', 'my-view');
WOW!
Let me test it.
By the way thanks for this PR..
Hey @kellerjmrtn ,
Can you add this changes to docs ?