For a personal Laravel project, I'm starting by making an admin panel before the end user view. For at least one model, I'm allowing soft deletes to be used.
I have two opinion-based questions to that end:
For routing should I reuse the included PUT /posts/{post}resource route or make a dedicated PUT route like /posts/{post}/restore to restore the soft-deleted model?
Is restore an acceptable verb in terms of resourceful verbs in the controller? I'm trying to avoid using any non-standard verbs as method names in controllers.
For small, personal projects, PATCH is perfectly acceptable; and in most cases preferrable.
If you wanted, your resource in this case could actually a deleted posts collection, so your action would be to a DeletedPostController, and you could destroy the DeletedPost by restoring it? It's a little mind-bendy, and could be argued that it is not correct resourceful approach, by it is a quirky scenario...