I get the error of:
Permission denied The exception occurred while attempting to log: Target class [AdminController] does not exist
I have this in the route file web.php:
Route::middleware(['auth', 'verified', 'admin'])->group(function () {
Route::get('/admin', [AdminController::class, 'index'])->name('admin.dashboard');
});
AdminController.php is:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AdminController extends Controller
{
public function index()
{
return view('admin.dashboard');
}
}
All files are in the correct directories and are spelt correctly.
Any ideas?