app/Http/Controllers/PostController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\PostModel  $postModel
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $post=PostModel::findOrFail($id);
        $post->delete();
    }
public function destroy ( $ id ) { $ post = PostModel :: findOrFail ( $ id ) ; $ post -> delete ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .