• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

conedevelopment / root / 15084089635

17 May 2025 10:00AM UTC coverage: 77.93% (+0.04%) from 77.891%
15084089635

push

github

web-flow
Modernize back-end.yml (#240)

3291 of 4223 relevant lines covered (77.93%)

36.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Http/Middleware/Authenticate.php
1
<?php
2

3
namespace Cone\Root\Http\Middleware;
4

5
use Illuminate\Auth\Middleware\Authenticate as Middleware;
6
use Illuminate\Http\Request;
7
use Illuminate\Support\Facades\URL;
8

9
class Authenticate extends Middleware
10
{
11
    /**
12
     * Get the path the user should be redirected to when they are not authenticated.
13
     */
14
    protected function redirectTo(Request $request): ?string
×
15
    {
16
        return $request->expectsJson() ? null : URL::route('root.auth.login');
×
17
    }
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc