This commit is contained in:
philipp lang 2025-03-31 01:58:54 +02:00
parent ecf3cc998c
commit a75b4a7808
2 changed files with 7 additions and 2 deletions
app
Form/Data
Http/Middleware

View File

@ -31,7 +31,10 @@ class FormConfigData extends Data
);
}
/** @return DataEloquentCast<self> */
/**
* @param array<int, mixed> $arguments
* @return DataEloquentCast<self>
*/
public static function castUsing(array $arguments): DataEloquentCast
{
return new DataEloquentCast(static::class, $arguments);

View File

@ -11,12 +11,14 @@ class Authenticate extends Middleware
*
* @param \Illuminate\Http\Request $request
*
* @return void
* @return string|null
*/
protected function redirectTo($request)
{
if (!$request->expectsJson()) {
return route('login');
}
return null;
}
}