Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

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 →