32 lines
585 B
PHP
32 lines
585 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\Auth;
|
||
|
|
||
|
use Illuminate\Routing\Router;
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use Modules\Auth\Components\LoginForm;
|
||
|
|
||
|
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');
|
||
|
});
|
||
|
}
|
||
|
}
|