title: Set session variables in Laravel
body: <p>In vanilla PHP, I can set a session variable using the below code;</p>
  
  <pre><code>$_SESSION['blog'] = array(
      "email" =&gt; $_POST['email'],
      "password" =&gt; $password,
      "firstname" =&gt; $row ['firstName'],
      "lastname" =&gt; $row ['lastName'],
      "id" =&gt; $row ['id']
  );
  </code></pre>
  
  <p>How can I do the same in <code>laravel</code>.
  FYI I'm not talking about the default session name eg <code>PHPSESSID</code> or <code>laravel_session</code>. I have multiple session variables for parts of my site such as <code>web</code>, <code>blog</code>, 'careers' and I name them just like the code above and able to check and access them individually. So one user can have all three sessions variables at the same time but for different sections of the site.</p>