Target class [PlayerController] does not exist.
snippet in php

Target class [Controller] does not exist.

user9567

//accessing any function in the controller (this is web.php file)
use App\Http\Controllers\PostsController;

Route::get('/post', 'App\Http\Controllers\PostsController@index');

Target class [PlayerController] does not exist.

user851

//add controller path
Route::get('/players', 'App\Http\Controllers\PlayerController@index');