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

LeTraceurSnorkLibrary / MessSaga / 23789040245

31 Mar 2026 08:56AM UTC coverage: 0.549% (-18.1%) from 18.656%
23789040245

Pull #13

github

web-flow
Merge fe9485107 into b32c68b3f
Pull Request #13: infra: coverage only for unit-tests

4 of 729 relevant lines covered (0.55%)

0.01 hits per line

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

0.0
/app/Http/Controllers/Auth/RegisteredUserController.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\Models\User;
9
use Illuminate\Auth\Events\Registered;
10
use Illuminate\Http\RedirectResponse;
11
use Illuminate\Http\Request;
12
use Illuminate\Support\Facades\Auth;
13
use Illuminate\Support\Facades\Hash;
14
use Illuminate\Validation\Rules;
15
use Inertia\Inertia;
16
use Inertia\Response;
17

18
class RegisteredUserController extends Controller
19
{
20
    /**
21
     * Display the registration view.
22
     */
23
    public function create(): Response
24
    {
25
        return Inertia::render('Auth/Register');
×
26
    }
27

28
    /**
29
     * Handle an incoming registration request.
30
     *
31
     * @throws \Illuminate\Validation\ValidationException
32
     */
33
    public function store(Request $request): RedirectResponse
34
    {
35
        $request->validate([
×
36
            'name'     => 'required|string|max:255',
×
37
            'email'    => 'required|string|lowercase|email|max:255|unique:' . User::class,
×
38
            'password' => ['required', 'confirmed', Rules\Password::defaults()],
×
39
        ]);
×
40

41
        $user = User::create([
×
42
            'name'     => $request->name,
×
43
            'email'    => $request->email,
×
44
            'password' => Hash::make($request->password),
×
45
        ]);
×
46

47
        event(new Registered($user));
×
48

49
        Auth::login($user);
×
50

51
        return redirect(route('dashboard', absolute: false));
×
52
    }
53
}
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