skip to Main Content

Laravel – upload file from subdomain to subdomain

How To Upload file from https://subdomain.laravel.com/ to https://assets.laravel.com/ Example your project on https://subdomain.laravel.com/ 'assets' => [ 'driver' => 'local', 'root' => public_path('assets/images'), // Path ke folder 'images' dalam folder 'assets' 'url' => 'https://assets.laravel.com/', // URL publik untuk mengakses file 'visibility'…

VIEW QUESTION

PHP Wildcard Subdomains in Apache

I want so that when im in http://localhost/example/category it allows me to have a subdomain that is dynamic like user1.localhost/example/category, user2.localhost/example/category, user3.localhost/example/category etc... I got it working with the index from localhost but i want it to work when its…

VIEW QUESTION

Laravel Routing: Handling Parameters for Subdomains and Main Domain in a Single Controller Method

There are two groups of routes: for subdomains and the main domain: Route::middleware(['language'])->group(function () { Route::domain('{subdomain}.vizit.loc')->group(function () { Route::controller(FrontSightController::class)->group(function () { Route::get('/sights', 'index')->name('subdomain.main.sights.index'); Route::get('/sights/category/{category_slug}', 'showByCategory')->name('subdomain.main.sights.category.index'); }); }); }); Route::middleware(['language'])->group(function () { Route::domain('vizit.loc')->group(function () Route::controller(FrontSightController::class)->group(function () { Route::get('/sights', 'index')->name('main.sights.index'); Route::get('/sights/category/{category_slug}', 'showByCategory')->name('main.sights.category.index');…

VIEW QUESTION
Back To Top
Search