Patel Alpesh
Patel Alpesh

Reputation: 55

Laravel 7.21 Class Illuminate\Support\Facades\Input not found

Laravel 7.21 Class Illuminate\Support\Facades\Input not found

I have take aliases in app.php but like

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

Written in Controller like this

use Illuminate\Support\Facades\Input;

Access by like this

Input::all() , Input::get('name')

ANY CHANGES IN LARAVEL 7.21 version ???

Upvotes: 2

Views: 4170

Answers (1)

meewog
meewog

Reputation: 1740

Based on the Laravel docs, since version 6.x Input has been removed.

The Input facade, which was primarily a duplicate of the Request facade, has been removed. If you are using the Input::get method, you should now call the Request::input method. All other calls to the Input facade may simply be updated to use the Request facade.

Upvotes: 7

Related Questions