K
K
kamwork2015-12-05 22:53:07
Laravel
kamwork, 2015-12-05 22:53:07

How to implement project regionality through subdomains on laravel?

Hello.
In which direction to drip, so that the admin panel would be one, and subdomains would be generated from it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-12-07
@ExileeD

Can do so

Route::group(array('domain' => '{lang}.myapp.com'), function() {

Route::get('/', function($lang, $id) {
    // ...
   // Ваши роутеры
});});

Then all subdomains will be resolved by laravel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question