Fixed livewire script loading issues
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Edward Tirado Jr 2025-12-15 23:53:07 -06:00
parent b2b8bca9ea
commit e3b6d302c6
11 changed files with 37 additions and 28 deletions

View file

@ -1,7 +1,7 @@
<div class="text-2xl">
<h1 class="text-center m-5">Create Account</h1>
<form class="flex flex-col gap-5" wire:submit.prevent="register">
<form class="flex flex-col gap-5" wire:submit="register">
@if($errors->any())
<div class="text-red-500">
@foreach($errors->all() as $error)
@ -12,11 +12,11 @@
<div class="flex flex-col">
<label class="py-5" for="username">Username</label>
<input class="bg-white" type="text" wire:model="form.username"/>
<input class="bg-white" type="text" wire:model.live="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"/>
<input class="bg-white" type="email" wire:model.live="form.email"/>
</div>
<button type="submit" class="bg-green-400 text-white px-4 py-2 rounded">Submit</button>
</form>

View file

@ -1,7 +1,7 @@
<div class="text-2xl">
<h1 class="text-center m-5">Reset Password</h1>
<form class="flex flex-col gap-5" wire:submit.prevent="resetPassword">
<form class="flex flex-col gap-5" wire:submit="resetPassword">
@csrf
@if($errors->any())
<div class="text-red-500">
@ -17,7 +17,7 @@
class="bg-white"
type="email"
name="email"
wire:model="form.email"
wire:model.live="form.email"
/>
</div>
<div class="flex flex-col">
@ -26,7 +26,7 @@
class="bg-white"
type="password"
name="password"
wire:model="form.password"
wire:model.live="form.password"
/>
</div>
<div class="flex flex-col">
@ -35,7 +35,7 @@
class="bg-white"
type="password"
name="password_confirmation"
wire:model="form.password_confirmation"
wire:model.live="form.password_confirmation"
/>
</div>
<button type="submit">Submit</button>