How to determine the controller in the routes which is located in the Static folder?

I try like this, but he does not find the folder:

 Route::get('/', 'stet/Site__Controller@index'); 

    1 answer 1

    If the controller has a namespace, then you write with it
    Route::get('/', 'namespace\Controller@method'); ,
    if not, it doesn't matter what folder it is in -
    Route::get('/', 'Controller@method'); ,

    • namespace App \ Http \ Controllers \ Site; - asd
    • Route :: get ('/', 'namespace \ Site__Controller @ index'); - asd
    • Class App \ Http \ Controllers \ namespace \ Site__Controller does not exist Issues - asd
    • remove the namespace word Route::get('/', 'App\Http\Controllers\Site__Controller@index'); - apelsinka223