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

LeTraceurSnorkLibrary / MessSaga / 24340325874

13 Apr 2026 11:12AM UTC coverage: 27.903% (-2.6%) from 30.539%
24340325874

Pull #18

github

web-flow
Merge 7a189b893 into 572b42cbd
Pull Request #18: feat: admin panel

0 of 144 new or added lines in 8 files covered. (0.0%)

1 existing line in 1 file now uncovered.

459 of 1645 relevant lines covered (27.9%)

0.65 hits per line

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

0.0
/app/Http/Controllers/Auth/AuthenticatedSessionController.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Http\Controllers\Auth;
6

7
use App\Http\Controllers\Controller;
8
use App\Http\Requests\Auth\LoginRequest;
9
use Illuminate\Http\RedirectResponse;
10
use Illuminate\Http\Request;
11
use Illuminate\Support\Facades\Auth;
12
use Illuminate\Support\Facades\Route;
13
use Illuminate\Validation\ValidationException;
14
use Inertia\Inertia;
15
use Inertia\Response;
16
use Symfony\Component\HttpFoundation\Response as InertiaResponse;
17

18
class AuthenticatedSessionController extends Controller
19
{
20
    /**
21
     * Display the login view.
22
     */
23
    public function create(): Response
24
    {
25
        return Inertia::render('Auth/Login', [
×
26
            'canResetPassword' => Route::has('password.request'),
×
27
            'status'           => session('status'),
×
28
        ]);
×
29
    }
30

31
    /**
32
     * Handle an incoming authentication request.
33
     *
34
     * @param LoginRequest $request
35
     *
36
     * @throws ValidationException
37
     * @return InertiaResponse
38
     */
39
    public function store(LoginRequest $request): InertiaResponse
40
    {
41
        $request->authenticate();
×
UNCOV
42
        $request->session()->regenerate();
×
43

NEW
44
        $intended = $request->session()->get('url.intended');
×
NEW
45
        $location = is_string($intended)
×
NEW
46
            ? $intended
×
NEW
47
            : 'dashboard';
×
48

NEW
49
        return Inertia::location($location);
×
50
    }
51

52
    /**
53
     * Destroy an authenticated session.
54
     */
55
    public function destroy(Request $request): RedirectResponse
56
    {
57
        Auth::guard('web')->logout();
×
58

59
        $request->session()->invalidate();
×
60

61
        $request->session()->regenerateToken();
×
62

63
        return redirect('/');
×
64
    }
65
}
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