(1/1)找不到InvalidArgumentException视图[index]

时间:2019-02-11 10:06:54

标签: php laravel apache nginx heroku

穿上Heroku后,我的应用程序出现了问题(不起作用)。我收到此错误“(1/1)InvalidArgumentException 查看[未找到索引]”。.我检查了缓存文件,检查了路径。不幸的是,没有任何帮助。我认为错误可能出在apache / nginx方面,但我不知道该怎么做。

class PageController extends Controller {

    /**
     * Create a new controller instance.
     *
     * @return void
     */


    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $symptoms = Symptoms::where('symptoms.translation_lang', config('app.locale'))
        ->leftJoin('categories', 'categories.id', '=', 'symptoms.categories')
        ->get();

        $testimonials = DB::table('testimonials')->orderBy('id', 'desc')->get();

        $doctors = Doctor::with('user')->get();


        $data = array('symptoms' => $symptoms,'testimonials' => $testimonials, 'doctors' => $doctors);
        return view('index')->with($data);
    }
}

Route::group(['middleware' => 'web'], function (){
        Route::get('/', 'PageController@index')->name('index');
});

0 个答案:

没有答案