Class App\Http\Controllers\Admin\UserController Does Not Exist

Answers 1
  • --PATH routes\web.php
    Route::post('page', 'Admin\[email protected]')->name('methodname');

    W3codegenerator provide a code snippets for "Class App\Http\Controllers\Admin\UserController Does Not Exist" query. There could be any reason for this error in your laravel project but some time there is an issue of case sensitive file path definition in your web file. Linux hosting server is case sensitive. You have to write the second parameter (Admin\UserController) of the post method in uppercase or lowercase as per your folder name (Admin folder under controllers folder) in the web.php file. It works fine on localhost in a windows machine with both uppercase and lowercase file path definition.

  • Back to code snippet queries related laravel