0

I am building a module called Student in Laravel.

I use the routes.php file inside the Student folder to write routes related to student module..

When I use just

Route::get('/main', function () { return view('welcome'); });

program working fine without error.

But when I am using

Route::get('/student', 'StudentController@student');

there is an error: Target class [StudentController] does not exist.

lagbox
  • 48,571
  • 8
  • 72
  • 83

0 Answers0