A simple PHP package to show SweetAlerts with the Laravel Framework

Overview

Easy Sweet Alert Messages for Laravel

A success alert

Latest Version StyleCI Total Downloads

Installation

Require the package using Composer.

composer require uxweb/sweet-alert

If using laravel < 5.5 include the service provider and alias within config/app.php.

'providers' => [
    UxWeb\SweetAlert\SweetAlertServiceProvider::class,
];

'aliases' => [
    'Alert' => UxWeb\SweetAlert\SweetAlert::class,
];

Installing Frontend Dependency

This package works only by using the BEAUTIFUL REPLACEMENT FOR JAVASCRIPT'S "ALERT".

Using a CDN

<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Include this in your blade layout -->
    <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  </head>
  <body>
    @include('sweet::alert')
  </body>
</html>

Using Laravel Mix

Install using Yarn

yarn add sweetalert --dev

Install using NPM

npm install sweetalert --save-dev

Require sweetalert within your resources/js/bootstrap.js file.

// ...

require("sweetalert");

// ...

Then make sure to include your scripts in your blade layout. Remove the defer attribute if your script tag contains it, defer will delay the execution of the script which will cause an error as the sweet::alert blade template is rendered first by the browser as html.

<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}"></script>
  </head>
  <body>
    @include('sweet::alert')
  </body>
</html>

Finally compile your assets with Mix

npm run dev

Usage

Using the Facade

First import the SweetAlert facade in your controller.

use SweetAlert;

Within your controllers, before you perform a redirect...

public function store()
{
    SweetAlert::message('Robots are working!');

    return Redirect::home();
}

Here are some examples on how you can use the facade:

SweetAlert::message('Message', 'Optional Title');

SweetAlert::basic('Basic Message', 'Mandatory Title');

SweetAlert::info('Info Message', 'Optional Title');

SweetAlert::success('Success Message', 'Optional Title');

SweetAlert::error('Error Message', 'Optional Title');

SweetAlert::warning('Warning Message', 'Optional Title');

Using the helper function

alert($message = null, $title = '')

In addition to the previous listed methods you can also just use the helper function without specifying any message type. Doing so is similar to:

alert()->message('Message', 'Optional Title')

Like with the Facade we can use the helper with the same methods:

alert()->message('Message', 'Optional Title');

alert()->basic('Basic Message', 'Mandatory Title');

alert()->info('Info Message', 'Optional Title');

alert()->success('Success Message', 'Optional Title');

alert()->error('Error Message', 'Optional Title');

alert()->warning('Warning Message', 'Optional Title');

alert()->basic('Basic Message', 'Mandatory Title')->autoclose(3500);

alert()->error('Error Message', 'Optional Title')->persistent('Close');

Within your controllers, before you perform a redirect...

/**
 * Destroy the user's session (logout).
 *
 * @return Response
 */
public function destroy()
{
    Auth::logout();

    alert()->success('You have been logged out.', 'Good bye!');

    return home();
}

For a general information alert, just do: alert('Some message'); (same as alert()->message('Some message');).

Using the Middleware

Middleware Groups

First register the middleware in web middleware groups by simply adding the middleware class UxWeb\SweetAlert\ConvertMessagesIntoSweetAlert::class into the $middlewareGroups of your app/Http/Kernel.php class:

protected $middlewareGroups = [
    'web' => [
        \App\Http\Middleware\EncryptCookies::class,
        ...
        \UxWeb\SweetAlert\ConvertMessagesIntoSweetAlert::class,
    ],

    'api' => [
        'throttle:60,1',
    ],
];

Make sure you register the middleware within the 'web' group only.

Route Middleware

Or if you would like to assign the middleware to specific routes only, you should add the middleware to $routeMiddleware in app/Http/Kernel.php file:

protected $routeMiddleware = [
    'auth' => \App\Http\Middleware\Authenticate::class,
    ....
    'sweetalert' => \UxWeb\SweetAlert\ConvertMessagesIntoSweetAlert::class,
];

Next step: within your controllers, set your return message (using with()) and send the proper message and proper type.

return redirect('dashboard')->with('success', 'Profile updated!');

or

return redirect()->back()->with('error', 'Profile updated!');

NOTE: When using the middleware it will make an alert to display if it detects any of the following keys flashed into the session: error, success, warning, info, message, basic.

Final Considerations

By default, all alerts will dismiss after a sensible default number of seconds.

But not to worry, if you need to specify a different time you can:

// -> Remember!, the number is set in milliseconds
alert('Hello World!')->autoclose(3000);

Also, if you need the alert to be persistent on the page until the user dismiss it by pressing the alert confirmation button:

// -> The text will appear in the button
alert('Hello World!')->persistent("Close this");

You can render html in your message with the html() method like this:

// -> html will be evaluated
alert('<a href="#">Click me</a>')->html()->persistent("No, thanks");

Customize

Config

If you need to customize the default configuration options for this package just export the configuration file:

php artisan vendor:publish --provider "UxWeb\SweetAlert\SweetAlertServiceProvider" --tag=config

A sweet-alert.php configuration file will be published to your config directory. By now, the only configuration that can be changed is the timer for all autoclose alerts.

View

If you need to customize the included alert message view, run:

php artisan vendor:publish --provider "UxWeb\SweetAlert\SweetAlertServiceProvider" --tag=views

The package view is located in the resources/views/vendor/sweet/ directory.

You can customize this view to fit your needs.

Configuration Options

You have access to the following configuration options to build a custom view:

Session::get('sweet_alert.text')
Session::get('sweet_alert.title')
Session::get('sweet_alert.icon')
Session::get('sweet_alert.closeOnClickOutside')
Session::get('sweet_alert.buttons')
Session::get('sweet_alert.timer')

Please check the CONFIGURATION section in the website for all other options available.

Default View

The sweet_alert.alert session key contains a JSON configuration object to pass it directly to Sweet Alert.

@if (Session::has('sweet_alert.alert'))
<script>
  swal({!! Session::get('sweet_alert.alert') !!});
</script>
@endif

Note that {!! !!} are used to output the json configuration object unescaped, it will not work with {{ }} escaped output tags.

Custom View

This is an example of how you can customize your view to fit your needs:

@if (Session::has('sweet_alert.alert'))
<script>
  swal({
      text: "{!! Session::get('sweet_alert.text') !!}",
      title: "{!! Session::get('sweet_alert.title') !!}",
      timer: {!! Session::get('sweet_alert.timer') !!},
      icon: "{!! Session::get('sweet_alert.type') !!}",
      buttons: "{!! Session::get('sweet_alert.buttons') !!}",

      // more options
  });
</script>
@endif

Note that you must use "" (double quotes) to wrap the values except for the timer option.

Tests

To run the included test suite:

vendor/bin/phpunit

Demo

SweetAlert::message('Welcome back!');

return Redirect::home();

A simple alert

SweetAlert::message('Your profile is up to date', 'Wonderful!');

return Redirect::home();

A simple alert with title

SweetAlert::message('Thanks for comment!')->persistent('Close');

return Redirect::home();

A simple alert with title and button

SweetAlert::info('Email was sent!');

return Redirect::home();

A info alert

SweetAlert::error('Something went wrong', 'Oops!');

return Redirect::home();

A error alert

SweetAlert::success('Good job!');

return Redirect::home();

A success alert

SweetAlert::info('Random lorempixel.com : <img src="http://lorempixel.com/150/150/">')->html();

return Redirect::home();

HTML in message

SweetAlert::success('Good job!')->persistent("Close");

return Redirect::home();

A persistent alert

License

Sweet Alert for Laravel is open-sourced software licensed under the MIT license.

Comments
  • SweetAlert2 Compatibility

    SweetAlert2 Compatibility

    Most of the function are no longer working in SweetAlert2. Example: alert()->success('Message', 'title'); is no longer working as a Success Alert but a normal alert.

    opened by joerjoers 20
  • Alerts not showing on 5.4.11

    Alerts not showing on 5.4.11

    So i am trying to at uxweb/sweet-alert to my project that is currently using 5.4.11. I have used this on many projects before but none since i started using laravel 5.4.11

    My Master Layout:

    <link rel="stylesheet" href="{{url('/css/sweetalert.css')}}">
    <link rel="stylesheet" href="{{url('/css/app.css')}}">
    <script src="{{url('/js/sweetalert.js')}}"></script>
    <script src="{{url('/js/app.js')}}"></script>
    @include('sweet::alert')
    

    My config/app.php: UxWeb\SweetAlert\SweetAlertServiceProvider::class,

    My Controller:

    Alert::message('We will get back to you soon!', 'Thank you!');
    return redirect()->route('home');
    

    I have added use Auth; into my controller as well.

    opened by 0x35FF 9
  • Using Middleware to generate alert

    Using Middleware to generate alert

    The new middleware generated purpose is to capture all messages from the session, which include: errors, success, info, warning, message, and basic.

    So for user just to send the message in the session as usual:

    return redirect('dashboard')->with('success', 'Profile updated!'); 
    

    And the middleware will capture this message and convert it to SweatAlert message.

    This will be helpful especially to capture the validation messages using $this->validate() method.

    $this->validate($request, [
            'title' => 'required|unique:posts|max:255',
            'body' => 'required',
    ]);
    

    Because this method automatically generates the response.


    Usage

    With Middleware

    Using middleware groups

    First register the middleware in web middleware groups by simply add the middleware class UxWeb\SweetAlert\ConvertMessagesIntoSweatAlert::class into the $middlewareGroups of your app/Http/Kernel.php class:

        protected $middlewareGroups = [
            'web' => [
                \App\Http\Middleware\EncryptCookies::class,
                ...
                \UxWeb\SweetAlert\ConvertMessagesIntoSweatAlert::class,
            ],
    
            'api' => [
                'throttle:60,1',
            ],
        ];
    
    

    Ensure to register the middleware within 'web' group only.

    Using route middleware

    Or if you would like to assign the middleware to specific routes only, you should add the middleware to $routeMiddleware in app/Http/Kernel.php file:

    protected $routeMiddleware = [
        'auth' => \App\Http\Middleware\Authenticate::class,
        ....
        'sweetalert' => \UxWeb\SweetAlert\ConvertMessagesIntoSweatAlert::class,
    ];
    

    Next step, Within your controllers, set your return message (using with()), send the proper message and proper type

    return redirect('dashboard')->with('success', 'Profile updated!'); 
    

    or

    return redirect()->back()->with('errors', 'Profile updated!'); 
    
    opened by assaqqaf 9
  • prevent show when user press back button in browser?

    prevent show when user press back button in browser?

    I use this package in my projects and i found some problem, ex: when i created some product success alert will show. it's work correcty but when i go to create product page again and press back to previous page alert will show up again. how to resolve that?

    ps.sorry for my bad english

    opened by izcream 8
  • SweetAlert warning:

    SweetAlert warning: "type" option has been deprecated. Please use "icon" instead.

    Getting this error. On dev-master Laravel 6. Pulling sweetalert.js (2.1.2) from Cloudflare.

    SweetAlert warning: "type" option has been deprecated. Please use "icon" instead.

    opened by kriiv 7
  • sweet alert button doesn't appear

    sweet alert button doesn't appear

    Hi I use sw-2 in my laravel project but persistent button doesn't show

    alert()->warning('please wait','my title')->persistent('ok');

    Button Ok doesn't show can anyone help me?

    opened by mohamadhs 6
  • Remove laravel/framework v6.0.0 - Not supported on Laravel 6.0?

    Remove laravel/framework v6.0.0 - Not supported on Laravel 6.0?

    Using version ^2.0 for uxweb/sweet-alert ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

    Problem 1 - Conclusion: remove laravel/framework v6.0.3 - Conclusion: don't install laravel/framework v6.0.3 - uxweb/sweet-alert 2.0.0 requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - uxweb/sweet-alert 2.0.1 requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - uxweb/sweet-alert v2.x-dev requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - don't install illuminate/session 5.0.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.1.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.2.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.3.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.4.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.5.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.6.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.7.17|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.7.18|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.7.19|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.7.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session 5.8.x-dev|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.22|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.25|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.26|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.33|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.0.4|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.1|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.13|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.16|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.2|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.20|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.22|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.25|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.30|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.31|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.41|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.6|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.1.8|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.19|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.21|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.24|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.25|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.26|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.27|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.31|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.32|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.37|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.43|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.45|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.6|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.2.7|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.3.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.3.16|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.3.23|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.3.4|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.13|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.17|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.19|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.27|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.36|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.4.9|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.16|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.17|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.2|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.33|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.34|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.35|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.36|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.37|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.39|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.40|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.41|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.43|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.5.44|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.1|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.10|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.11|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.12|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.13|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.14|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.15|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.16|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.17|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.19|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.2|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.20|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.21|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.22|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.23|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.24|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.25|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.26|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.27|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.29|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.3|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.30|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.31|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.32|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.33|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.34|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.35|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.36|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.37|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.38|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.39|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.4|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.5|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.6|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.7|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.8|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.6.9|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.1|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.10|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.11|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.15|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.2|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.20|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.21|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.22|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.23|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.26|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.27|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.3|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.4|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.5|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.6|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.7|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.8|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.7.9|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.0|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.11|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.12|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.14|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.15|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.17|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.18|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.19|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.2|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.20|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.22|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.24|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.27|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.28|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.29|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.3|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.30|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.31|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.32|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.33|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.34|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.35|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.4|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.8|don't install laravel/framework v6.0.3 - don't install illuminate/session v5.8.9|don't install laravel/framework v6.0.3 - Installation request for laravel/framework (locked at v6.0.3, required as ^6.0) -> satisfiable by laravel/framework[v6.0.3]. - Installation request for uxweb/sweet-alert ^2.0 -> satisfiable by uxweb/sweet-alert[2.0.0, 2.0.1, v2.x-dev].

    Installation failed, reverting ./composer.json to its original content.

    opened by Juanjosexdd 5
  • Does this work on Laravel 5.3.10

    Does this work on Laravel 5.3.10

    Good Day,

    I would like to ask if this version "uxweb/sweet-alert": "dev-master" works on Laravel 5.3.10?

    I follow the instruction here. However, the alert doesn't show up in my controller store method, just what is showed in documentation.
    public function store(CreateTestScaffoldRequest $request) { $input = $request->all();

        $testScaffold = $this->testScaffoldRepository->create($input);
    
        Alert::message('Robots are working!');
        return redirect(route('testScaffolds.index'));
    

    }

    @ my index.blade.php I also @include('sweet::alert') On browsers console I got this error: Uncaught ReferenceError: swal is not defined (anonymous function) @ testScaffolds:94

    That points to this html script line of codes: swal({"showConfirmButton":false,"allowOutsideClick":true,"timer":1800,"title":"Robots are working!"});

    opened by aescasio 5
  • Remove laravel/framework v6.0.0 - Not supported on Laravel 6.0?

    Remove laravel/framework v6.0.0 - Not supported on Laravel 6.0?

    ` Using version ^2.0 for uxweb/sweet-alert ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

    Problem 1 - Conclusion: remove laravel/framework v6.0.0 - Conclusion: don't install laravel/framework v6.0.0 - uxweb/sweet-alert 2.0.0 requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - uxweb/sweet-alert 2.0.1 requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - uxweb/sweet-alert v2.x-dev requires illuminate/session ~5.0 -> satisfiable by illuminate/session[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9]. - don't install illuminate/session 5.8.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.11|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.12|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.14|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.15|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.17|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.18|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.19|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.2|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.20|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.22|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.24|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.27|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.29|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.3|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.30|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.31|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.32|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.33|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.34|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.35|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.4|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.8|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.8.9|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.0.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.1.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.2.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.3.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.4.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.5.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.6.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.7.17|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.7.18|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.7.19|don't install laravel/framework v6.0.0 - don't install illuminate/session 5.7.x-dev|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.22|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.25|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.26|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.33|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.0.4|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.1|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.13|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.16|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.2|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.20|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.22|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.25|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.30|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.31|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.41|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.6|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.1.8|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.19|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.21|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.24|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.25|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.26|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.27|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.31|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.32|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.37|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.43|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.45|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.6|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.2.7|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.3.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.3.16|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.3.23|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.3.4|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.13|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.17|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.19|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.27|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.36|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.4.9|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.16|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.17|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.2|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.33|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.34|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.35|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.36|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.37|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.39|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.40|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.41|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.43|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.5.44|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.1|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.10|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.11|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.12|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.13|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.14|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.15|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.16|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.17|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.19|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.2|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.20|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.21|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.22|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.23|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.24|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.25|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.26|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.27|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.29|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.3|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.30|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.31|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.32|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.33|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.34|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.35|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.36|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.37|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.38|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.39|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.4|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.5|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.6|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.7|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.8|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.6.9|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.0|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.1|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.10|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.11|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.15|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.2|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.20|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.21|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.22|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.23|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.26|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.27|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.28|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.3|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.4|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.5|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.6|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.7|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.8|don't install laravel/framework v6.0.0 - don't install illuminate/session v5.7.9|don't install laravel/framework v6.0.0 - Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0]. - Installation request for uxweb/sweet-alert ^2.0 -> satisfiable by uxweb/sweet-alert[2.0.0, 2.0.1, v2.x-dev].`

    opened by anburocky3 4
  • Unnecessary function in tests

    Unnecessary function in tests

    Since a few days I'm trying out Scrutinizer. When I add a call to get something from my Laravel config files, Scrutinizer gives me an error.

    It tells me my config() method should implement a second parameter. The second parameter for config() isn't mandatory, so I think it is picking the wrong config method.

    Why do we need an config() method in this test file? Can we move it inside a namespace to avoid double methods? Or can it be removed?

    https://github.com/uxweb/sweet-alert/blob/master/tests/SweetAlertNotifierTest.php#L369

    Screenshot 2019-05-06 at 14 53 28

    opened by meijdenmedia 4
  • persistent not showing close text

    persistent not showing close text

    alert()->success('Staff has been deleted successfully', 'Success')->persistent('Close'); the alert produced by the above code does not have the close button Edit!! here is the problem sweetalert.min.js:1 SweetAlert warning: "showConfirmButton" option has been deprecated. Please use "button" instead. More details: https://sweetalert.js.org/docs/#button e.logDeprecation @ sweetalert.min.js:1 sweetalert.min.js:1 SweetAlert warning: "confirmButtonText" option has been deprecated. Please use "button" instead. More details: https://sweetalert.js.org/docs/#button

    you need to update the package to use the latest version of sweetalert

    opened by FMurunga 4
  • Big Problem with Laravel 9

    Big Problem with Laravel 9

    Hi It dosent work with laravel 9.0.This is my Error Problem 1 - illuminate/support[v5.6.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.1.9) does not satisfy that requirement. - illuminate/support[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.1.9) does not satisfy that requirement. - illuminate/support[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.1.9) does not satisfy that requirement. - illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.9) does not satisfy that requirement. - Root composer.json requires laravel/sanctum ^3.0 -> satisfiable by laravel/sanctum[v3.0.0, v3.0.1, 3.x-dev]. - Conclusion: don't install laravel/framework v9.20.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.1 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.2 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.3 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.4 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.5 (conflict analysis result) - Conclusion: don't install laravel/framework v9.21.6 (conflict analysis result) - Conclusion: don't install laravel/framework v9.22.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.22.1 (conflict analysis result) - Conclusion: don't install laravel/framework v9.23.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.24.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.25.0 (conflict analysis result) - Conclusion: don't install laravel/framework v9.25.1 (conflict analysis result) - Root composer.json requires uxweb/sweet-alert dev-master -> satisfiable by uxweb/sweet-alert[dev-master]. - Conclusion: don't install laravel/framework v9.19.0 (conflict analysis result) - uxweb/sweet-alert dev-master requires illuminate/support ~5.0|^6.0|^7.0|^8.0 -> satisfiable by illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev]. - Only one of these can be installed: illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev], laravel/framework[v9.19.0, ..., 9.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it. - Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., 9.x-dev].

    opened by edoardoagnelli1357 3
  • allowOutsideClick doesn't work.

    allowOutsideClick doesn't work.

    Is this being monitored anymore? I hope so. It's a great option.

    I have this in a vue component and the alert works, but the allowOutsideClick: false does not.

         swal(
                                {
                                    title: 'Attention!',
                                    text: 'That contact is already assigned to this customer!',
                                    type: 'warning',
                                    allowOutsideClick: false
                                }
    
    opened by airliajsmith 0
  • Form submits twice when using with Vue modal.

    Form submits twice when using with Vue modal.

    I am using Sweetalert with a Vue modal. When I click Submit on the modal form, the alert pops up. That works fine.

    However, if I accidentally click where the modal submit button was (you cannot see it because the Sweetalert window is open), it will submit the modal form twice. It only occurs if I click too soon. Not sure if it's because the Sweetalert window hasn't fully loaded? I'm a bit click-happy.

    Any ideas on how to prevent this issue? I tried to add this to my modal: @submit.once, but then I can't click "ok" on the Sweetalert window.

    opened by airliajsmith 0
Releases(2.0.5)
Owner
Uziel Bueno
Uziel Bueno
The Rickies, the prediction draft show of the Connected podcast

The Rickies Predictions with risk, flexing, and passion. On Connected at Relay FM. The Rickies are a prediction draft show on the Connected podcast at

Lex Postma 21 Oct 1, 2022
Validate your input data in a simple way, an easy way and right way. no framework required. For simple or large. project.

wepesi_validation this module will help to do your own input validation from http request POST or GET. INTEGRATION The integration is the simple thing

Boss 4 Dec 17, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.

Chat Create a Chat application for your multiple Models Table of Contents Click to expand Introduction Installation Usage Adding the ability to partic

Tinashe Musonza 931 Dec 24, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.

Webdevetc BlogEtc - Complete Laravel Blog Package Quickly add a blog with admin panel to your existing Laravel project. It has everything included (ro

WebDevEtc. 227 Dec 25, 2022
A Simple GUID creator Laravel Package for PHP

A Simple GUID creator package for PHP. This package is useful for creating globally unique identifiers (GUID). It's under MIT license so it's free for

Sujip Thapa 15 Jun 26, 2021
Stapler-based file upload package for the Laravel framework.

laravel-stapler Laravel-Stapler is a Stapler-based file upload package for the Laravel framework. It provides a full set of Laravel commands, a migrat

Code Sleeve 565 Dec 9, 2022
This package wraps up the standalone executable version of the Tailwind CSS framework for a Laravel application.

Tailwind CSS for Laravel Introduction This package wraps the standalone Tailwind CSS CLI tool. No Node.js required. Inspiration This package was inspi

Tony Messias 240 Nov 19, 2022
Stapler-based file upload package for the Laravel framework.

laravel-stapler Laravel-Stapler is a Stapler-based file upload package for the Laravel framework. It provides a full set of Laravel commands, a migrat

Code Sleeve 565 Dec 9, 2022
Framework agnostic PHP package for marking navigation items active.

Ekko Framework agnostic PHP package for marking navigation items active. Features Framework agnostic. Can be modified for any custom application and U

Laravelista 275 Jul 27, 2022
Your users do not always report errors, LaraBug does. LaraBug is a simple to use and implement error tracker built for the Laravel framework.

Your users do not always report errors, LaraBug does. LaraBug is a simple to use and implement error tracker built for the Laravel framework. This rep

LaraBug 197 Dec 9, 2022
Fast and simple implementation of a REST API based on the Laravel Framework, Repository Pattern, Eloquent Resources, Translatability, and Swagger.

Laravel Headless What about? This allows a fast and simple implementation of a REST API based on the Laravel Framework, Repository Pattern, Eloquent R

Julien SCHMITT 6 Dec 30, 2022
Simple Video is a automated H264 encryption system built on Lumen Laravel Framework

Simple Video is a automated H264 encryption system built on Lumen Laravel Framework

Azril Nazli Alias 4 Oct 5, 2022
A simple API wrapper to Gigapay's APIs for Laravel Framework

Laravel-Gigapay A simple API wrapper for Gigapay's APIs. It gives you helper methods that will make your work with gigapay's API easy, fast and effici

Asif Patel 3 May 23, 2022
This package provides extended support for our spatie/enum package in Laravel.

Laravel support for spatie/enum This package provides extended support for our spatie/enum package in Laravel. Installation You can install the packag

Spatie 264 Dec 23, 2022
Testbench Component is the de-facto package that has been designed to help you write tests for your Laravel package

Laravel Testing Helper for Packages Development Testbench Component is the de-facto package that has been designed to help you write tests for your La

Orchestra Platform 1.9k Dec 29, 2022
🥳🔐 This package is a Laravel package that checks if an email address is a spammer

This package is a Laravel package that checks if an email address is a spammer. It verifies your signups and form submissions to confirm that they are legitimate.

Endurance, the Martian 15 Dec 19, 2022