35 lines
813 B
PHP
35 lines
813 B
PHP
<?php
|
|
|
|
namespace Modules\Auth;
|
|
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Auth\Components\LoginForm;
|
|
use Modules\Auth\Components\PasswordReset;
|
|
|
|
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/reseta', PasswordReset::class)->name('password.reset');
|
|
});
|
|
}
|
|
}
|