src/WinkServiceProvider.php
private function registerRoutes()
    {
        $path = config('wink.path');
        $middlewareGroup = config('wink.middleware_group');

        Route::namespace('Wink\Http\Controllers')
            ->middleware($middlewareGroup)
            ->as('wink.')
            ->prefix($path)
            ->group(function () {
                Route::get('/login', 'LoginController@showLoginForm')->name('auth.login');
                Route::post('/login', 'LoginController@login')->name('auth.attempt');

                Route::get('/password/forgot', 'ForgotPasswordController@showResetRequestForm')->name('password.forgot');
                Route::post('/password/forgot', 'ForgotPasswordController@sendResetLinkEmail')->name('password.email');
                Route::get('/password/reset/{token}', 'ForgotPasswordController@showNewPassword')->name('password.reset');
            });

        Route::namespace('Wink\Http\Controllers')
            ->middleware([$middlewareGroup, Authenticate::class])
            ->as('wink.')
            ->prefix($path)
            ->group(function () {
                $this->loadRoutesFrom(__DIR__.'/Http/routes.php');
            });
    }
private function registerRoutes()
    {
        $path = config('wink.path');
        $middlewareGroup = config('wink.middleware_group');

        Route::namespace('Wink\Http\Controllers')
            ->middleware($middlewareGroup)
            ->as('wink.')
            ->prefix($path)
            ->group(function () {
                Route::get('/login', 'LoginController@showLoginForm')->name('auth.login');
                Route::post('/login', 'LoginController@login')->name('auth.attempt');

                Route::get('/password/forgot', 'ForgotPasswordController@showResetRequestForm')->name('password.forgot');
                Route::post('/password/forgot', 'ForgotPasswordController@sendResetLinkEmail')->name('password.email');
                Route::get('/password/reset/{token}', 'ForgotPasswordController@showNewPassword')->name('password.reset');
            });

        Route::namespace('Wink\Http\Controllers')
            ->middleware([$middlewareGroup, Authenticate::class])
            ->as('wink.')
            ->prefix($path)
            ->group(function () {
                $this->loadRoutesFrom(__DIR__.'/Http/routes.php');
            });
    }
private function registerRoutes ( ) { $ path = config ( 'wink.path' ) ; $ middlewareGroup = config ( 'wink.middleware_group' ) ; Route :: namespace ( 'Wink\Http\Controllers' ) -> middleware ( $ middlewareGroup ) -> as ( 'wink.' ) -> prefix ( $ path ) -> group ( function ( ) { Route :: get ( '/login' , 'LoginController@showLoginForm' ) -> name ( 'auth.login' ) ; Route :: post ( '/login' , 'LoginController@login' ) -> name ( 'auth.attempt' ) ; Route :: get ( '/password/forgot' , 'ForgotPasswordController@showResetRequestForm' ) -> name ( 'password.forgot' ) ; Route :: post ( '/password/forgot' , 'ForgotPasswordController@sendResetLinkEmail' ) -> name ( 'password.email' ) ; Route :: get ( '/password/reset/{token}' , 'ForgotPasswordController@showNewPassword' ) -> name ( 'password.reset' ) ; } ) ; Route :: namespace ( 'Wink\Http\Controllers' ) -> middleware ( [ $ middlewareGroup , Authenticate :: class ] ) -> as ( 'wink.' ) -> prefix ( $ path ) -> group ( function ( ) { $ this -> loadRoutesFrom ( __DIR__ . '/Http/routes.php' ) ; } ) ; }
Register the package routes.

@return void
Register the package routes .