Create cookie
Cookie::queue('user-language', 'en' , 1440);
Get Value From cookie
$language = Cookie::get('user-language');
$lang =ucfirst(Cookie::get('user-language'));
Delete cookie
Cookie::forget('user-language');
Check existance of cookie
if(! Cookie::has('user-language'))
{
return redirect(url('my-profile'))->withInput()->with('success','Please select language or contact to administrator');
}
Discover more from Soa Technology | Aditya Website Development Designing Company
Subscribe to get the latest posts sent to your email.