Laravel ->with method working local but not on production

I have a function in my controller that sends out a message with the ‘with’ method. It works perfect on my local env but not in the production.

Here is the function i use in my controller:

return redirect()->back()->with('successMsg',trans('users.badges_reset'));

And this is the function i use in my view

@if(Session::has('successMsg'))
    <div class="alert alert-success" role="alert">
    <i class="fas fa-check"></i> {{Session::get('successMsg')}}
    </div>
@endif

The view component is loaded in my other templates via include.

I debugged the session but it doesn’t show up