Hi everyone please i want to know how to set a session and use it in my website using laravel
in normal php file without laravel i made $_SESSION['job_type']=1;
and in 4 pages i made if($_SESSION['job_type']==1) { // do something here}
i want to make like this in laravel and tried many times but i can not make it
any idea
\Session::put('job_type', 1);
if(\Session::get('job_type') == 1) {
{
//do something
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community