Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a default module #250

Open
pslxx opened this issue Mar 18, 2016 · 5 comments
Open

How to set a default module #250

pslxx opened this issue Mar 18, 2016 · 5 comments

Comments

@pslxx
Copy link

pslxx commented Mar 18, 2016

How to set a default module,
Such as access to the index will be directed to a front module

@thanhansoft
Copy link

Yes, I need it

@nWidart
Copy link
Member

nWidart commented Apr 10, 2016

you set it yourself via the code on runtime.

@thanhansoft
Copy link

Hi nWidart, I do not know, please help complete it. Please provide detailed guidance to help me, Thank you very much

@pslxx
Copy link
Author

pslxx commented Apr 12, 2016

Route::group(['middleware' => 'shop', 'domain' => config('system.shop_domain'), 'prefix' => '', 'namespace' => 'Modules\Shop\Http\Controllers'], function () { Route::get('/', ['as' => 'shop_index', 'uses' => 'IndexController@index']); });

remove prefix

@thanhansoft
Copy link

Thank: pslxx,
How to use: config('system.shop_domain'). Please guide me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants