Answers for "laravel Target class [PageController] does not exist."

PHP
0

laravel 8 Target class [FormController] does not exist.

use App\Http\Controllers\UserController;

Route::get('/users', [UserController::class, 'index']);
// or
Route::get('/users', 'App\Http\Controllers\UserController@index');
Posted by: Guest on February-16-2021
2

Target class [SallyController] does not exist.

//In laravel 8 uncomment  protected $namespace='App\\Http\\Controllers';
Posted by: Guest on February-12-2021
0

target class admin homecontroller does not exist laravel 8

Route::get('/home', 'App\Http\Controllers\HomeController@index')->name('home');
Posted by: Guest on June-02-2021
0

Target class [AppController] does not exist.

public function boot()
{
    ...

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

    ...
}
Posted by: Guest on August-27-2021

Code answers related to "laravel Target class [PageController] does not exist."

Browse Popular Code Answers by Language