skip to Main Content

Redis – Events don't work laravel, in the queue, the process is in progress and gives an error

Created an event, it works locally, uploaded it to the server stopped working. [2021-04-02 14:26:51] local.ERROR: Class 'Redis' not found {"exception":"[object] (Error(code: 0): Class 'Redis' not found at /vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:75) [stacktrace] how to connect Redis? PrivatMessageEvent.php <?php namespace AppEvents; use IlluminateBroadcastingChannel;…

VIEW QUESTION

I call Controller and view through route first time but it show error like this – PHP Versions

home.php //controller <?php namespace AppHttpControllers; use IlluminateHttpRequest; class home extends Controller { public function index($home) { return view('home',['home'=>$home]); } } web.php Route::get('home/{home}',[home::class,'index']); home.blade.php {{home}} ErrorException Use of undefined constant home - assumed 'home' (this will throw an Error in a…

VIEW QUESTION
Back To Top
Search