title: Display a sweet alert box when login is successful in laravel 7
body: <p>I tried to edit <code>RedirectIfAuthenticated.php</code>
  but it is not working, you can see part of my code in here:</p>
  
  <pre><code>public function handle($request, Closure $next, $guard = null)
      {
          if (Auth::guard($guard)-&gt;check()) {
              alert()-&gt;success('You have been login.', 'Hello!');
              return redirect(RouteServiceProvider::HOME);
          }
  
          return $next($request);
      }
  </code></pre>
  
  <p>I want to use uxweb sweet Alert package</p>