fixed user registration issue
This commit is contained in:
parent
908d877cfb
commit
f5664ce84b
9 changed files with 203 additions and 30 deletions
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -3,4 +3,5 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ $title ?? 'Movie Night' }}</title>
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
@livewireStyles
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
<x-head/>
|
||||
<body class="bg-blue-600">
|
||||
{{ $slot }}
|
||||
@livewireScriptConfig
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,26 +1,23 @@
|
|||
<x-layouts.auth>
|
||||
<div class="text-2xl">
|
||||
<h1 class="text-center m-5">Create Account</h1>
|
||||
<div class="text-2xl">
|
||||
<h1 class="text-center m-5">Create Account</h1>
|
||||
|
||||
<form class="flex flex-col gap-5" wire:submit.prevent="register">
|
||||
@csrf
|
||||
@if($errors->any())
|
||||
<div class="text-red-500">
|
||||
@foreach($errors->all() as $error)
|
||||
<p>{{$error}}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<form class="flex flex-col gap-5" wire:submit.prevent="register">
|
||||
@if($errors->any())
|
||||
<div class="text-red-500">
|
||||
@foreach($errors->all() as $error)
|
||||
<p>{{$error}}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="flex flex-col">
|
||||
<label class="py-5" for="username">Username</label>
|
||||
<input class="bg-white" type="text" name="username" wire:model="form.username"/>
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<label class="py-5" for="email">Email</label>
|
||||
<input class="bg-white" type="email" name="email" wire:model="form.email"/>
|
||||
</div>
|
||||
<button type="submit" class="bg-green-400 text-white px-4 py-2 rounded">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</x-layouts.auth>
|
||||
<div class="flex flex-col">
|
||||
<label class="py-5" for="username">Username</label>
|
||||
<input class="bg-white" type="text" wire:model="form.username"/>
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<label class="py-5" for="email">Email</label>
|
||||
<input class="bg-white" type="email" wire:model="form.email"/>
|
||||
</div>
|
||||
<button type="submit" class="bg-green-400 text-white px-4 py-2 rounded">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue