Answer the question
In order to leave comments, you need to log in
How to add an article to the database using the Laravel REST API?
I did everything according to this article https://arjunphp.com/create-rest-laravel-framework/
And how to use routes?
Route::delete('task/{id}','[email protected]');
// update existing task
Route::put('task','[email protected]');
// create new task
Route::post('task','[email protected]');
Sorry, the page you are looking for could not be found
<form action="http://127.0.0.1:8000/task" method="POST" enctype="multipart/form-data">
{{csrf_field()}}
<div class="form-group">
<label for="formGroupExampleInput">Описание</label>
<input name="description" type="text" class="form-control" id="formGroupExampleInput" placeholder="Введите что-нибудь">
</div>
<button type="submit" class="btn btn-success">Submit</button>
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question