/
hikqri
/
up
Обзор
Документация
Войти
/
hikqri
/
up
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
app/Http/Middleware/Authenticate.php
21 строка
469 B
Myckaa
first_commit
26 июн 2026, 18:36
26 июн 2026, 18:36
8095503
Код
Авторство
О чём код?
<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. * * @param \Illuminate\Http\Request $request * @return string|null */ protected function redirectTo($request) { if (! $request->expectsJson()) { return route('login'); } } }