samedi 26 novembre 2022

laravel Target class [App\Http\Controllers\EmployeeController] does not exist

enter image description here enter image description here

enter image description here

Target class [App\Http\Controllers\EmployeeController] does not exist.

 protected $namespace ='App\\Http\\Controllers';
public function boot()
{
    $this->configureRateLimiting();

    $this->routes(function () {
        Route::middleware('api')
            ->prefix('api')
            ->namespace($this->namespace)
            ->namespace('App\Http\Controllers') 
            ->group(base_path('routes/api.php'));

        Route::middleware('web')
        ->namespace($this->namespace)
        ->namespace('App\Http\Controllers')
        ->group(base_path('routes/web.php'));
    });

}

using but not solving the problem



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/DsvzprI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire