Class 'app http controllers Redirect, Auth, Session Input, Response, validator, Model, View

preview_player
Показать описание
The error "Class 'App\Http\Controllers\Redirect', \Auth, \Session, \Input, \Response, \Model, \View, \validator, \DB not found" can occur when a controller uses the Redirect facade without importing it first. This causes the controller to look for the Redirect class in the same namespace as the controller, which is App\Http\Controllers\Redirect, \Auth, \Session, \Input, \Response, \Model, \View, \validator, \DB.

To fix this error, you can:
Step 1 - Put use Redirect,Auth,Session,Input,Response,Model,validator,View,DB; in your import statements
Step 2 - Add use Redirect,Auth,Session,Input,Response,Model,View,validator,DB; in your controller just after the namespace line
Step 3 - Put `\` before you call Redirect,Auth,Session,Input,Response,Model,View,DB, \validator.

#for-article

#laravel #redirect #validator #session #auth #input #response #model #view #db #illuminate #app #http #class #controllers #facades #laravel_tutorial #laravel10 #laraveltutoria #laravelcourse #laravel_development

Class 'App\Http\Controllers\Redirect' not found
Class 'App\Http\Controllers\Validator' not found
Class 'App\Http\Controllers\Session' not found
Class 'App\Http\Controllers\Auth' not found
Class 'App\Http\Controllers\Input' not found
Class 'App\Http\Controllers\Response' not found
Class 'App\Http\Controllers\Model' not found
Class 'App\Http\Controllers\View' not found
class "illuminate\support\facades\input" not found
class "illuminate\support\facades\db" not found
Class 'App\Http\Controllers\DB' not found
Рекомендации по теме
welcome to shbcf.ru