Created
December 24, 2022 02:01
-
-
Save aryadiahmad4689/38a32a2e1935ce60e255b83240a7b743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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