skip to Main Content

New Laravel Install – Cant find Controllers – PHP Versions

I have a new Laravel project running Valet + (laravel 8.12). Controller: app->Http->Controllers->PageController.php <?php namespace AppHttpControllers; use IlluminateHttpRequest; class PageController extends Controller { public function dashboard() { return view('show'); } } Web.php Route::get('/', function () { return view('home'); }); Route::get(…

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