In your controller:
$value = $request->cookie('test-cookie');
if ($value == 'test') {
return view('view-with-no-form');
}
$view = view('view-with-form');
$response = new Response($view);
$response->withCookie('test-cookie', 'test', 60);
return $response;
Hi @ssomenzi.
I'm not quite sure how this will work according to what I say above.
Hope this make sense
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community