Skip to content

Commit 559e459

Browse files
Initial Commit
1 parent f5bd299 commit 559e459

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

app/Actions/Fortify/CreateNewUser.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Actions\Fortify;
44

55
use App\Models\User;
6-
use App\Models\Roles;
6+
use App\Models\Role;
77
use App\Models\Invitation;
88
use Illuminate\Support\Facades\Hash;
99
use Illuminate\Support\Facades\Validator;
@@ -34,10 +34,6 @@ public function create(array $input)
3434
]);
3535

3636
$user->roles()->sync('3');
37-
38-
$invitation = Invitation::where('email', $user->email)->firstOrFail();
39-
$invitation->registered_at = $user->created_at;
40-
$invitation->save();
4137

4238
return $user;
4339
}

resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<div class="mt-4">
1818
<x-jet-label for="email" value="{{ __('Email') }}" />
19-
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="isset($email) ? $email : old('email')" required readonly />
19+
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="isset($email) ? $email : old('email')" required />
2020
</div>
2121

2222
<div class="mt-4">

resources/views/navigation-dropdown.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
{{ __('Dashboard') }}
1717
</x-jet-nav-link>
1818
</div>
19+
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
20+
<x-jet-nav-link href="{{ route('user') }}" :active="request()->routeIs('user')">
21+
{{ __('User Management') }}
22+
</x-jet-nav-link>
23+
</div>
1924
</div>
2025

2126
<!-- Settings Dropdown -->

routes/web.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
return view('welcome');
1818
});
1919

20-
Route::get('/register', [\App\Http\Controllers\RegistrationController::class, 'index'])->middleware(['hasInvitation'])->name('register');
21-
2220
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
2321
return view('dashboard');
2422
})->name('dashboard');

0 commit comments

Comments
 (0)