I have a part of my code that saves data in the session and will retrieve my data on the same controller file but cannot access it. Here’s how I do it:
public function index(Request $request)
'recruits' => $recruits,
'header' => $header,
'condition' => $condition,
'sort' => $sort,
//so when I retrieve it here thru dd(Session::get('data')), it displays well.
//this is the function which is in the same file
public function filter()
// data displayed in my session is only recruits and condition
Anyone has idea on this?
from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/2Kz9SOX