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

后端 未结 7 1047
野趣味
野趣味 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:40

    I had the same problem because I had a backslash \, the solution was change it to slash:

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

提交回复
热议问题