app/Http/Controllers/FrontPostController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\RedirectResponse
     */
Remove the specified resource from storage.
@param  int  $id
@return \Illuminate\Http\RedirectResponse
Remove the specified resource from storage . @param int $id @return \ Illuminate \ Http \ RedirectResponse
public function destroy($id)
    {
        $post = PostModel::findOrFail($id);
        $post->delete();
        flash('Post Excluído com Sucesso')->success();
        return  redirect()->route('post.index');
    }
public function destroy ( $ id ) { $ post = PostModel :: findOrFail ( $ id ) ; $ post -> delete ( ) ; flash ( 'Post Excluído com Sucesso') - >s uccess( ) ; return redirect ( ) -> route ( 'post.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .