Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

clear session in laravel

  @if(Session::has('success'))
        <div class="alert alert-success">
            {{ Session::get('success') }}
            @php
            Session::forget('success');
            @endphp
        </div>
  @endif
Source by laravel.io #
 
PREVIOUS NEXT
Tagged: #clear #session #laravel
ADD COMMENT
Topic
Name
6+8 =