<form action="{{ route('posts.likes', $post->id) }}" type="submit" method='post' > @csrf @method('delete') <button type="submit" class="btn btn-primary btn-sm">Dislike</button> </form> //route Route::delete('/posts/{id}/likes', [PostLikeController::class, 'destroy'])->name('posts.likes');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter