Files
ntspi-app/app/Ship/Middleware/Authenticate.php
T
F4ilji c01016a154 Migrate backend to Porto architecture and fix minor bugs
- Fully transitioned the backend to the Porto architectural pattern
- Improved code organization and maintainability
- Fixed minor bugs and inconsistencies
2025-05-12 08:47:43 +05:00

22 lines
477 B
PHP

<?php
namespace App\Ship\Middleware;
use App\Ship\Abstracts\Middleware\Authenticate as AbstractMiddleware;
class Authenticate extends AbstractMiddleware
{
/**
* 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 '/';
}
}
}