Laravel Array Session Store - OneNightStudy.Com

Tuesday, 9 September 2014

Laravel Array Session Store

Put in Session:

$user = array('name'=>'test','sex'=>'male');
Session::put('user', $user);

Get from Session:

$user = Session::get('user');
dd($user);

2 comments:

  1. Great blog created by you. I read your blog, its best and useful information. You have done a great work. Super blogging and keep it up.
    php jobs in hyderabad.

    ReplyDelete
  2. • Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingAzure Online course hyderabad

    ReplyDelete