Horje
subdomain in laravel and xampp Code Example
subdomain in laravel and xampp


Update Locally : \xampp\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "E:/xampp/htdocs/project_name/public"
    ServerName localhost
    ServerAlias *.localhost
    <Directory "E:/xampp/htdocs/project_name/public">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
Then Try this routing

Route::group([
    'domain'    => '{office_name}.localhost'
],function(){
    Route::get('/', function () {
        return 'I AM OFFICE OWNER';
    });
});

Route::get('/', function () {
    return 'I AM SITE VISITOR';
});
Run with php artisan serv




Php

Related
Filename cannot be empty in /vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php Code Example Filename cannot be empty in /vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php Code Example
drupal 8 $_GET Code Example drupal 8 $_GET Code Example
php curl empty response Code Example php curl empty response Code Example
get author display name wordpress Code Example get author display name wordpress Code Example
php pdo setting error modes Code Example php pdo setting error modes Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8