Sistema de controles da União de Ciclistas do Brasil
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

58 lines
2.2 KiB

<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::middleware('guest')->group(function () {
Route::view('login', 'associates.auth.login')->name('login');
Route::livewire('register/{form?}', 'associates.auth.register')
->layout('layouts.auth')
->name('register');
});
Route::view('password/reset', 'associates.auth.passwords.email')->name('password.request');
Route::get('password/reset/{token}', 'Associates\Auth\PasswordResetController')->name('password.reset');
Route::middleware('auth')->group(function () {
Route::view('/', 'welcome')->name('home');
Route::post('logout', 'Associates\Auth\LogoutController')->name('logout');
});
Route::prefix('admin')->name('collaborators.')->group(function () {
Route::middleware('guest:collaborators')->group(function () {
Route::view('login', 'collaborators.auth.login')->name('login');
});
Route::view('password/reset', 'collaborators.auth.passwords.email')->name('password.request');
Route::get('password/reset/{token}', 'Collaborators\Auth\PasswordResetController')->name('password.reset');
Route::middleware('auth:collaborators')->group(function () {
Route::view('/', 'collaborators.dashboard')->name('dashboard');
Route::post('logout', 'Collaborators\Auth\LogoutController')->name('logout');
Route::livewire('associates', 'collaborators.associates.index')
->layout('layouts.collaborators')
->name('associates.index');
Route::livewire('associates/{associate}', 'collaborators.associates.show')
->layout('layouts.collaborators')
->name('associates.show');
Route::livewire('associates/{associate}/edit', 'collaborators.associates.edit')
->layout('layouts.collaborators')
->name('associates.edit');
});
});