app/Http/Controllers/PostsController.php
/**
     * Remove the specified resource from storage.

     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Post $post, $id)
    {
        Post::destroy(['id',$id]);
        return redirect('dashboard');
    }
public function destroy ( Post $ post , $ id ) { Post :: destroy ( [ 'id' , $ id ] ) ; return redirect ( 'dashboard' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .