class 'input' not found laravel 8 code example

Example 1: message "Class 'Input' not found"

Input facade definition from config/app.php hence you have to manually add that in to aliases array as below,

'Input' => Illuminate\Support\Facades\Input::class,

Or You can import Input facade directly as required,

use Illuminate\Support\Facades\Input;

Example 2: class 'illuminate support facades input' not found laravel 7

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

use Request::

Add to the top of Controller or any other Class

use Illuminate\Support\Facades\Request;

Tags:

Php Example