skip to Main Content

Storage Linking Issue in Laravel 8 on localhost – PHP Versions

Laravel Version: 8.35.1 PHP Version: 8.0.0 Description: I'm uploading an image with laravel using this code: $product_image = $request->file('product_image'); $product_image_extension = $product_image->extension(); $product_image_name = time() . '.' . $product_image_extension; $product_image->storeAs('/media/product_images', $product_image_name); $model->product_image = $product_image_name; It works fine, the file is…

VIEW QUESTION

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