路由是这么写的:Route::get('student/index',['uses' => 'StudentController@index']);控制器StudentController.php<?phpnamespace App\Http\Controller;use App\Http\Controllers\Controller;class StudentController extends Controller{ public function index() { return view('student.index'); }}结果提示:Whoops, looks like something went wrong.1/1
ReflectionExceptionin Route.php line 264:
Class App\Http\Controllers\StudentController does not exist
in Route.php line 264atReflectionMethod->__construct('App\Http\Controllers\StudentController', 'index') in Route.php line 264atRoute->signatureParameters('Illuminate\Database\Eloquent\Model') in Router.php line 859atRouter->substituteImplicitBindings(object(Route)) in Router.php line 844atRouter->substituteBindings(object(Route)) in Router.php line 827atRouter->findRoute(object(Request)) in Router.php line 691atRouter->dispatchToRoute(object(Request)) in Router.php line 675
添加回答
举报
0/150
提交
取消