LARAVEL Tutorial


Laravel Class 'app\http\controllers\Response, Redirect, Validator Not Found

Author:- Sumit Suryavanshi
Updated Date:-14-08-2020

In this post, i will show you how to fix Class 'app\http\controllers\Response Not Found, Class 'app\http\controllers\Redirect Not Found, Class 'app\http\controllers\Validator Not Found execption in laravel.

Let's start to fix the following execption in laravel.

  • Class 'app\http\controllers\Response Not Found
  • Class 'app\http\controllers\Redirect Not Found
  • Class 'app\http\controllers\Validator Not Found

Class 'app\http\controllers\Response Not Found

If you found Class 'app\http\controllers\Response Not Found, so open your controller and add following facade into your controller file in laravel:

use Illuminate\Facades\Response;

OR

use Response;

Add this response facade into controller as follow:

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Response;

class TestController extends Controller
{
    //your code
}

Class 'app\http\controllers\Redirect Not Found

If you found Class 'app\http\controllers\Redirect Not Found, so open your controller and add following facade into your controller file in laravel:

use Illuminate\Facades\Redirect;

OR

use Redirect;

Add this Redirect facade into controller as follow:

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Redirect;

class TestController extends Controller
{
    //your code
}
 

Class 'app\http\controllers\Validator Not Found

If you found Class 'app\http\controllers\Validator Not Found, so open your controller and add following facade into your controller file in laravel:

use Illuminate\Facades\Validator;

OR

use Validator;

Add this validator facade into controller as follow:

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Validator;

class TestController extends Controller
{
    //your code
}