Вход Регистрация
Файл: app/Http/Middleware/Authenticate.php
Строк: 18
<?php

namespace AppHttpMiddleware;

use 
IlluminateAuthMiddlewareAuthenticate as Middleware;

class 
Authenticate extends Middleware
{
    
/**
     * Get the path the user should be redirected to when they are not authenticated.
     *
     * @param IlluminateHttpRequest $request
     *
     * @return string|null
     */
    
protected function redirectTo($request)
    {
        if (! 
$request->expectsJson()) {
            return 
route('login');
        }
    }
}
Онлайн: 0
Реклама