title: What is the replacement of alert() helper function in Sweetalert v2
body: <p>I'm using Sweetalert v2 with Laravel and because I had experience with Sweetalert v1, I knew that in the Controller method, I can do something like this:</p>
  <pre><code>public function update(Request $request, User $user)
  {
      ...
  
      alert()-&gt;success('Process is done');
  }
  </code></pre>
  <p>But for Sweetalert 2 I get this error:</p>
  <p><strong>Call to undefined function App\Http\Controllers\Admin\alert()</strong></p>
  <p>So how can I properly call a popup message in the Controller method when using Sweetalert v2?</p>