/
Bunker
/
exc
Обзор
Документация
Войти
/
Bunker
/
exc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
app/Http/Middleware/Authenticate.php
17 строк
409 B
Professional
first_commit
29 мар 2025, 00:10
29 мар 2025, 00:10
cbd239e
Код
Авторство
О чём код?
<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Http\Request; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. */ protected function redirectTo(Request $request): ?string { return $request->expectsJson() ? null : route('login'); } }