Class ‘App\Http\Controllers\Input’ Not Found In Laravel


In this tutorial, we learn Class ‘App\Http\Controllers\Input’ not found in Laravel. The input variable is the global variable and uses input, you need to input library. input use to form.

If you faced this problem so go to your page and find use input under namespace.

Class ‘App\Http\Controllers\Input’ Not Found In Laravel - Step By Step

If you are getting error like Class ‘App\Http\Controllers\Input’ not found on controller in laravel.

So, add use Illuminate\Support\Facades\Input; at the top of your controller file along with other prefixes:

use Illuminate\Support\Facades\Input;
Example:

Then YourController.php file, add use Illuminate\Support\Facades\Input; at the top of your controller a file like the following:

<?php
namespace App\Http\Controllers;
 
use Illuminate\Http\Request;
 
use Illuminate\Support\Facades\Input;
 
class YourController extends Controller
{
    public function index(Request $request)
    {
        //your code
    }
 
}

I hope it can help you...

Leave a Reply

Your privacy will not be published. Required fields are marked *

We'll share your Website Only Trusted.!!

close