as($prefix)->group(function () { Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); Route::post('login', 'Auth\LoginController@login')->name('login.check'); Route::get('logout', 'Auth\LoginController@logout')->name('logout'); }); // 관리자만 접근 가능 Route::domain(config('admin.domain'))->middleware(['auth.admin', 'admin'])->namespace('Admin')->as($prefix)->group(function () { Route::get('/', 'IndexController@index')->name('index'); // 회원 Route::get('/user', 'UserController@index')->name('user.list'); // 회원 등록 Route::get('/user/create', 'UserController@create')->name('user.create'); // 회원 수정 Route::get('/user/modify/{uid}', 'UserController@create')->name('user.update'); // 회원 비밀번호 변경 Route::post('/user/change/password', 'UserController@passwordChange')->name('user.change.password'); // 회원 저장 Route::post('/user/store', 'UserController@store')->name('user.store'); // 회원 탈퇴 Route::post('/user/signout', 'UserController@signout')->name('user.signout'); // 회원 복구 Route::post('/user/restore', 'UserController@restore')->name('user.restore'); // 게시판, 게시물 목록 Route::get('/board/{code}', 'BoardController@index')->name('board.list'); // 게시판, 게시물 상세 Route::get('/board/{code}/view/{uid}', 'BoardController@view')->name('board.view'); // 게시판, 게시물 등록 Route::get('/board/{code}/create', 'BoardController@create')->name('board.create'); // 게시판, 게시물 수정 Route::get('/board/{code}/modify/{uid}', 'BoardController@create')->name('board.modify'); // 게시판, 게시물 저장 Route::post('/board/store', 'BoardController@store')->name('board.store'); // 게시판, 에디터 이미지 업로드 Route::post('/board/image/upload', 'BoardController@imageUpload')->name('board.image.upload'); // 게시판, 댓글 저장 Route::post('/board/comment/store', 'BoardController@commentStore')->name('board.comment.store'); // 게시판, 댓글 삭제 Route::post('/board/comment/delete', 'BoardController@commentDelete')->name('board.comment.delete'); // 게시판, 첨부 이미지 삭제 Route::post('/board/asset/delete', 'BoardController@assetDelete')->name('board.asset.delete'); // 게시판, 게시물 삭제 Route::post('/board/delete', 'BoardController@delete')->name('board.delete'); // 제휴업체, 목록 Route::get('/partner', 'PartnerController@index')->name('partner.list'); // 제휴업체, 등록 Route::get('/partner/create', 'PartnerController@create')->name('partner.create'); // 제휴업체, 수정 Route::get('/partner/modify/{uid}', 'PartnerController@create')->name('partner.modify'); // 제휴업체, 저장 Route::post('/partner/store', 'PartnerController@store')->name('partner.store'); // 제휴업체, 삭제 Route::post('/partner/delete', 'PartnerController@delete')->name('partner.delete'); // 설정, 목록 Route::get('/setting', 'SettingController@index')->name('setting.list'); // 설정, 등록/수정 Route::get('/setting/create', 'SettingController@create')->name('setting.create'); // 설정, 저장 Route::post('/setting/store', 'SettingController@store')->name('setting.store'); // 설정, 삭제 Route::post('/setting/delete', 'SettingController@delete')->name('setting.delete'); });