jeudi 4 octobre 2018

The controllers namespace must start with your application namespace: App

I found this error when wanting to publish my namespace in the file voyager.php with the instruction, `php artisan voyager:controllers

route:

enter image description here

voyager.php

'controllers' => [
    'namespace' => 'TCG\\Voyager\\Http\\Controllers',
    'namespace' => 'App\\Http\\Controllers\\Voyager',
],

error message:

**The controllers namespace must start with your application namespace: App</error>**

I have applied these commands

composer dumpautoload
php artisan config:cache
php artisan cache:clear
composer update

install and uninstall voyager

I use the version of laravel 5.5

Also insert the provider TCG\Voyager\VoyagerServiceProvider::class,



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire