app/Http/Controllers/PostController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Post  $post
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Post $post)
    {
        $post->delete();
        return redirect()->route('posts.index')
                        ->with('success','l article c est éffacé avec succé');
    }
public function destroy ( Post $ post ) { $ post -> delete ( ) ; return redirect ( ) -> route ( 'posts.index' ) -> with ( 'success' , 'l article c est éffacé avec succé'); }
Remove the specified resource from storage.
Remove the specified resource from storage .
//