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

Laravel Wildcard Subdomain routing – Apache

I have some problems with wildcard subdomain routing with Laravel. I want to create subdomain for every user. So I'm doing like this: My API.js in Laravel routes: Route::domain('{user}.mydomain.com')->group(function () { Route::get('user', [UserController::class, 'getUserDetails'])->name('user'); }); And this is my vhosts…

VIEW QUESTION
Back To Top
Search