laravel 5 : Class 'input' not found

前端 未结 14 1009
滥情空心
滥情空心 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 07:59

    In Laravel 5.2 Input:: is replaced with Request::

    use

    Request::
    

    Add to the top of Controller or any other Class

    use Illuminate\Http\Request;
    

提交回复
热议问题