하위 도메인 이름 설정 문제

2354 단어
1. Homestead 구성 상세 정보
    - map: muc.test
      to: /home/vagrant/code/MUC/public

    - map: man.muc.test
      to: /home/vagrant/code/MUC/public

2. Laravel 라우팅 구성
 env('APP_HOST'), 'prefix'    =>  'admin'],function($router){

    //>        
    $router->get('login', 'LoginController@showLoginForm')->name('login');
    $router->post('login', 'LoginController@login');
    $router->post('logout', 'LoginController@logout')->name('logout');

    // Registration Routes...       
    $router->get('register', 'RegisterController@showRegistrationForm')->name('register');
    $router->post('register', 'RegisterController@register');

    // Password Reset Routes...     
    $router->get('password/reset', 'ForgotPasswordController@showLinkRequestForm')->name('password.request');
    $router->post('password/email', 'ForgotPasswordController@sendResetLinkEmail')->name('password.email');
    $router->get('password/reset/{token}', 'ResetPasswordController@showResetForm')->name('password.reset');
    $router->post('password/reset', 'ResetPasswordController@reset');

});

// Front
Route::get('login', 'Front\\LoginController@login')->name('front.auth.login');                     //   
Route::post('login/check', 'Front\\LoginController@loginCheck')->name('front.auth.login.check');   //   

Route::get('register/{uuid?}', 'Front\\RegisterController@index')->name('front.auth.register');            //   
Route::post('register', 'Front\\RegisterController@register')->name('front.auth.register.post');   //   

Route::get('forgot', 'Front\\ForgotPasswordController@index')->name('front.auth.forgot');            //     
Route::post('forgot', 'Front\\ForgotPasswordController@modify')->name('front.auth.forgot.post');   //     

3、.env 파일 설정
APP_HOST=man.muc.test

좋은 웹페이지 즐겨찾기