I try to set up kakao login to my Shopify store, but when I run the test I encountered this message error, what should I do? Thank you
CodePudding user response:
The Cache
facade doesn't live in the App\Http\Controllers
namespace. If you do not include a use
statement at the top of your PHP files for your classes, it is assumed the class
does live in the same namespace
.
The Laravel Cache
facade lives in the Illuminate\Support\Facades
namespace
so at the top of your KakaoController
with your other use
statements, add the following:
use Illuminate\Support\Facades\Cache;
CodePudding user response:
You must need to add "use Illuminate\Support\Facades\Cache;" on top of controller, middleware, command, event or blade files.
for example
<?php namespace App\Http\Controllers;
use Illuminate\Support\Facades\Cache;
class KaKaoController extends Controller {
...
or "use \Cache;"