Register the sweetalert2 service provider in your laravel app
go to the config/app.php configuration file:
First of all go to the laravel root directory , and run the below command to install package.
composer require amjadiqbal/sweetalert
Register the sweetalert2 service provider in your laravel app
go to the config/app.php configuration file:
'providers' => [
/*
* Package Service Providers...
*/
DMSysOp\SweetAlert\Providers\SweetAlertServiceProvider::class,
],
To use sweetalert package resources you have to run the below command
php artisan vendor:publish --provider="DMSysOp\SweetAlert\Providers\SweetAlertServiceProvider"