Preview:
In laravel 9:
Command No 1 in controller:
return redirect()->route('category.index')->with('success', 'Record Entered Successfully');

then in blade
 @if (Session::has('success'))
      <div class="alert alert-success">
        {{Session::get('success')}}
      </div>
@endif
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter