<?php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => 'auth'], function () {
Route::get('/', 'App\Http\Controllers\Index\IndexController')->name('index');
Route::get('/system/settings/roles', 'App\Http\Controllers\System\Settings\Roles\RolesController@index')->name('system.settings.roles');
Route::get('/system/settings/roles/{id}', 'App\Http\Controllers\System\Settings\Roles\RolesController@show')->name('system.settings.roles.show');
Route::get('/system/settings/roles/add', function () {
return view('system.settings.roles.create');
})->name('system.settings.roles.add');
});
Route::group(['middleware' => 'auth'], function () {
Route::patch('/system/settings/roles/{id}/update', 'App\Http\Controllers\System\Settings\Roles\RolesController@update')->name('system.settings.roles.update');
Route::post('/system/settings/roles/create', 'App\Http\Controllers\System\Settings\Roles\RolesController@create')->name('system.settings.roles.create');
});
Route::group(['middleware' => 'web'], function () {
Route::get('/login', function () {
return view('auth.login');
})->name('login');
});
Route::group(['middleware' => 'web'], function () {
Route::post('/login', 'App\Http\Controllers\Auth\LoginController');
});