I am trying to make laravel api, getting request is all working fine but when I use delete request, it show this
Please help , what can I do for this.
And this is in my web.php,
Route::delete(‘article/{id}’,‘ArticleController@destroy’);
And in ArticleController
public function destroy($id)
{
$article=Article::FindOrFail($id);
if($article->delete()){
return new ArticleResources($article);
}
}
#laravel #postman #api