laravel 5 : Class 'input' not found

前端 未结 14 1011
滥情空心
滥情空心 2020-12-02 07:35

In my routes.php file I have :

Route::get(\'/\', function () {

    return view(\'login\');
});

Route::get(\'/index\', function(){
    return v         


        
14条回答
  •  悲哀的现实
    2020-12-02 08:11

    It's changed in laravel 6. See for more info here

    Don't do anything in app.php and anywhere else, just replace

    input::get() with Request::input()

    and

    on top where you declare Input,Validator,Hash etc., remove Input and add Request

    use something like :

    Config,DB,File,Hash,Input,Redirect,Session,View,Validator,Request;

提交回复
热议问题