Laravel 5 InvalidArgumentException in FileViewFinder.php line 137: View [.admin] not found

后端 未结 7 1046
野趣味
野趣味 2021-02-19 07:32

This is student.php and my function for admin:

 public function admin(Request $request){

       if($request->isMethod(\'get\')){
       retu         


        
7条回答
  •  太阳男子
    2021-02-19 07:52

    You don't want to reference your views beginning with a slash.

    This:

    return \View::make('/admin');

    Should look like:

    return \View::make('admin');

提交回复
热议问题