Restoration
7/28/2018 - 6:13 PM

gistfile1.txt


//Route::get('/home', ['middleware' => 'auth', 'uses' => 'HomeController@index'])->name('home');


/*
Route::get('/', function () {return view('welcome');});
Auth::routes();
//一般ユーザー
Route::group(['middleware' => ['auth', 'can:user-higher']], function () {
    Route::get('/home','HomeController@index')->name('home');
    Route::get('/profile','ProfileController@index')->name('profile');
    Route::get('/skill','SkillController@index')->name('skill');
    Route::get('/work','WorkController@index')->name('work');
});

// 管理者以上
Route::group(['middleware' => ['auth', 'can:admin-higher']], function () {
  // ユーザ登録
  Route::get('/account/regist', 'AccountController@regist')->name('account.regist');
  Route::post('/account/regist', 'AccountController@createData')->name('account.regist');

});
// システム管理者のみ
Route::group(['middleware' => ['auth', 'can:system-only']], function () {
});
*/