Include the use statement:
use Illuminate\Support\Facades\Session;
And in the method where you need to set a session variable:
Session::put('dogsearch', $dogsearch);
to retrieve from session:
$myvar = Session::get('dogsearch');
But session is in the docs as well.
One place I use session is to build a redirect to a certain page:
return redirect('dog/indexadmin?p=' . Session::get('dogpage') . '&psch=' . Session::get('dogsearch') . '&aval=' . Session::get('dogaval'));
These are just examples.
Then how can i do session out for my web application?How can i set time for it?
Look in config\session.php