Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Session using Global Session php function

// Retrieve a piece of data from the session...
    $value = session('key');
 
    // Specifying a default value...
    $value = session('key', 'default');
 
    // Store a piece of data in the session...
    session(['key' => 'value']);
 
PREVIOUS NEXT
Tagged: #Laravel #Session #Global #Session #php #function
ADD COMMENT
Topic
Name
3+4 =