Set selected category based on original value or previous edit attempt
Set selected category based on the previous failed form submission
Add a method for handle edit post form submission
Add a route for handling edit post form submission
Add a proper form action URL and update submit button value
Fix validation for slug when updating post
Handle removed tags and added tags, and flashed a success message when post updating is successful
Remove unexpected asterik
Add a route for showing post delete confirmation page
Add a method for showing post delete confirmation page
Add a template view for post delete confirmation page
Add a method for handling post deletion
Add a route for handling post deleteion
Add a proper link for post deleteion
Detach all tags before deletion is performed
Prevent the deletion of the first default category
Render flashed error message
Prevent the deletion of the first default category
Remove delete button from the first category
On category deletion, set associated posts category to default category