src/Controllers/Admin/ManagePostsController.php
/**
     * Delete a post - removes it from the database, does not remove any featured images associated with the blog post.
     *
     * @param PostRequest $request
     * @param int         $blogPostID
     *
     * @throws Exception
     *
     * @return View
     */
Delete a post - removes it from the database, does not remove any featured images associated with the blog post.

@throws Exception

@return View
Delete a post - removes it from the database does not remove any featured images associated with the blog post . @throws Exception @return View
public function destroy(PostRequest $request, int $blogPostID): View
    {
        [$blogPost, $remainingPhotos] = $this->service->delete($blogPostID);
        return view(
            'blogetc_admin::posts.deleted_post',
            ['deletedPost' => $blogPost, 'remainingPhotos' => $remainingPhotos]
        );
    }
public function destroy ( PostRequest $ request , int $ blogPostID ) : View { [ $ blogPost , $ remainingPhotos ] = $ this -> service -> delete ( $ blogPostID ) ; return view ( 'blogetc_admin::posts.deleted_post' , [ 'deletedPost' => $ blogPost , 'remainingPhotos' => $ remainingPhotos ] ) ; }
Delete a post - removes it from the database, does not remove any featured images associated with the blog post.
Delete a post - removes it from the database does not remove any featured images associated with the blog post .