File size: 569 Bytes
cf75111
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
<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>