Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

Session:Forget Tag

Remove variables from the user session by passing the names of the variables into the keys parameter.

Example

Pass multiple keys by delimiting them with a pipe.

{{ session:forget keys="likes|referral" }}
{{-- Using Antlers Blade Components --}}
<s:session:forget keys="likes|referral" />
 
{{-- Using the session() helper --}}
@php(session()->forget(['likes', 'referral']))
Hot Tip!

The entire session can be wiped with the session:flush tag. Always wipe and flush, folks.

This is the humor you came for and the software you (maybe) paid for.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →