Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel set a session variable

// Via a request instance...
$request->session()->put('key', 'value');
 
// Via the global "session" helper...
session(['key' => 'value']);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #set #session #variable
ADD COMMENT
Topic
Name
1+6 =