Class 'Illuminate\Support\Facades\Input' not found

前端 未结 11 1945
生来不讨喜
生来不讨喜 2021-01-12 05:14

I have an error when upgrading laravel 6

Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError (E_ERROR) Class \'Illuminate\\Support\\F

11条回答
  •  盖世英雄少女心
    2021-01-12 05:42

    I have resolved below it worked for me
    Step 1: Access the link: yourproject\vendor\laravel\framework\src\Illuminate\Support\Facades
    Step 2: Create a file with the file name: Input.php
    Step 3: Paste the code below into the file you just created and save

    input($key, $default);
        }
    
        /**
         * Get the registered name of the component.
         *
         * @return string
         */
        protected static function getFacadeAccessor()
        {
            return 'request';
        }
    }
    
    


    Step 4: Rerun your project
    Done.Good luck!

提交回复
热议问题