kenken999's picture
test
cf75111
raw
history blame
569 Bytes
<h1>Edit Book</h1>
<form action="{{ route('books.update', $book->id) }}" method="post">
@csrf
@method('PUT')
<label for="title">Title:</label>
<input type="text" id="title" name="title" value="{{ $book->title }}"><br><br>
<label for="author">Author:</label>
<input type="text" id="author" name="author" value="{{ $book->author }}"><br><br>
<label for="published_at">Published At:</label>
<input type="date" id="published_at" name="published_at" value="{{ $book->published_at }}"><br><br>
<input type="submit" value="Update">
</form>