本文介绍了Route.php第280行中的ReflectionException:类App \ Http \ Controllers \ classroom不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨晚我将laravel 5.2项目上传到实时服务器中.当我上传此文件时,我遇到此错误,我的教室控制器没有退出.但是在localhost中,它运行良好,没有错误.我的教室管理员:

Last night i upload my laravel 5.2 project in live server. When i upload this i face this error my classroom controller does not exit. But in localhost it's working nice with no error.My classroom controller :

namespace App\Http\Controllers\classroom;
//use App\Http\Controllers\controller;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use App\Post;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Auth;
use App\Eloquent\Status;
use App\Eloquent\joinclass;

use App\Eloquent\StatusComments;
use App\Eloquent\announcement;
use Laracasts\Flash\Flash;
use DB;
use Session;
//use App\Model\classrooms;
use Illuminate\Support\Facades\Input;
use App\classroom as classroomModel;
use App\Http\Requests;
use View;
use App\User;

为什么给我看这个错误?

Why show me this errors?

推荐答案

如果一切都很好,这肯定会起作用,但仍然出现此错误,只需在终端中按照以下命令运行

This will definitely work if everything is fine and still you get this error just run following command in your terminal

cd /path_of_root_folder_where_composer_json_is_located 

然后运行

composer dumpautoload

尝试一下就可以了.

这篇关于Route.php第280行中的ReflectionException:类App \ Http \ Controllers \ classroom不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 01:33