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

RonasIT / laravel-empty-project / 12708157106

10 Jan 2025 10:54AM UTC coverage: 97.399%. Remained the same
12708157106

Pull #113

github

web-flow
Merge f56656fce into 4b3e9e972
Pull Request #113: #166: Automatically add .json extension

337 of 346 relevant lines covered (97.4%)

10.88 hits per line

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

100.0
/app/Http/Middleware/RedirectIfAuthenticated.php
1
<?php
2

3
namespace App\Http\Middleware;
4

5
use Closure;
6
use Illuminate\Support\Facades\Auth;
7

8
/**
9
 * @codeCoverageIgnore
10
 */
11
class RedirectIfAuthenticated
12
{
13
    public function handle($request, Closure $next, $guard = null)
14
    {
15
        if (Auth::guard($guard)->check()) {
16
            return redirect('/status');
17
        }
18

19
        return $next($request);
20
    }
21
}
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