adrema/modules/Auth/AuthServiceProvider.php

35 lines
813 B
PHP
Raw Normal View History

2024-12-07 14:55:14 +01:00
<?php
namespace Modules\Auth;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
use Modules\Auth\Components\LoginForm;
2024-12-08 23:38:03 +01:00
use Modules\Auth\Components\PasswordReset;
2024-12-07 14:55:14 +01:00
class AuthServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
app(Router::class)->middleware(['web', 'guest'])->group(function ($router) {
$router->get('/login', LoginForm::class)->name('login');
2024-12-08 23:38:03 +01:00
$router->get('/password/reset', PasswordReset::class)->name('password.request');
$router->get('/password/reseta', PasswordReset::class)->name('password.reset');
2024-12-07 14:55:14 +01:00
});
}
}