Laravel Soft Delete restore() Error
Another option is to search through the trashed models for a specific ID:
Post::onlyTrashed()->where('id', $post_id)->restore();
Error says $post
is a non-object, Laravel doesn't return trashed records without withTrashed()
Post::withTrashed()->find($post_id)->restore();
Laravel Docs - Soft Deleting
When querying a model that uses soft deletes, the "deleted" models will not be included...