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"