36 lines
877 B
PHP
36 lines
877 B
PHP
<?php
|
|
|
|
namespace Modules\Auth;
|
|
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Auth\Components\LoginForm;
|
|
use Modules\Auth\Components\PasswordReset;
|
|
use Modules\Auth\Components\PasswordResetConfirm;
|
|
|
|
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');
|
|
$router->get('/password/reset', PasswordReset::class)->name('password.request');
|
|
$router->get('/password/reset/{token}', PasswordResetConfirm::class)->name('password.reset');
|
|
});
|
|
}
|
|
}
|