Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="POST" action="{{ url('todos/' . $todo->id) }}">
- @csrf
- @method('PUT')
- <div class="form-group">
- <label for="name">Name</label>
- <input type="text" class="form-control" name="name" value="{{ $todo->name }}">
- </div>
- @if ($errors->any())
- <div class="alert alert-danger">
- <ul>
- @foreach ($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- </div>
- @endif
- <button type="submit" class="btn btn-primary">Submit</button>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement