Skip to content

Instantly share code, notes, and snippets.

@aryadiahmad4689
Created December 24, 2022 02:01
Show Gist options
  • Save aryadiahmad4689/38a32a2e1935ce60e255b83240a7b743 to your computer and use it in GitHub Desktop.
Save aryadiahmad4689/38a32a2e1935ce60e255b83240a7b743 to your computer and use it in GitHub Desktop.
<form>
<div class="form-group">
<input type="hidden" wire:model="post_id">
<label for="exampleFormControlInput1">Title</label>
<input type="text" class="form-control" wire:model="title" id="exampleFormControlInput1" placeholder="Enter Title">
@error('title') <span class="text-danger">{{ $message }}</span>@enderror
</div>
<div class="form-group">
<label for="exampleFormControlInput2">Description</label>
<input type="text" class="form-control" wire:model="description" id="exampleFormControlInput2" placeholder="Enter Description">
@error('description') <span class="text-danger">{{ $message }}</span>@enderror
</div>
<button wire:click.prevent="update()" class="btn btn-dark">Update</button>
<button wire:click.prevent="cancel()" class="btn btn-danger">Cancel</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment