Most Class not found are usually caused my incorrect namespace:
try
$cookie = \Cookie::make('name', 'value');
or add use Cookie; in your class like so:
<?php namespace App\Http\Controllers;
use Cookie;
UserController extends Controller{
}
0
votes
Put a slash before the Cookie it will work .
Like this
$cookie = \Cookie::make('name', 'value');
0
votes
cookie('cookiename','your value',time);
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
use Cookie;
. Done. – Amelia