I want to create custom controller in Voyager admin package, but I got this error message :
Class 'App\Http\Controllers\Back\VoyagerBreadController' not found
- I added the new controller name to the bread.
- I created a namespace a folder
/Back
inApp/Http/Controllers
- I created a file
BookingController.php
- My
BookingController
:
namespace App\Http\Controllers\Back;
use Illuminate\Http\Request;
class BookingController extends VoyagerBreadController
{
.......
}
I also tried to edit this line of voyager.php
to the new controller namespace but I got the same error.
'controllers' => [
'namespace' => 'TCG\\Voyager\\Http\\Controllers',
],
I have checked and VoyagerBreadController
does exist!