Class 'Counter' not found
Opened this issue · 2 comments
theakashwagh commented
I have installed it and thanks for making it.
I'm trying to use in show function but caravel giving me below error.
"message": "Class 'App\Http\Controllers\admin\Counter' not found",
"exception": "Symfony\Component\Debug\Exception\FatalThrowableError",
"file": "E:\xampp\htdocs\listing\app\Http\Controllers\admin\ListingController.php",
"line": 727,
cyrildewit commented
You probably forgot to add the Counter
facade to your configuration based on your error log.
Did you add the following to your config/app.php
file?
return [
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
// ..
'Counter' => Kryptonit3\Counter\Facades\CounterFacade::class, // this line
],
];
If so, try composer dump
rootM3eX commented
that's not working