app/Http/Controllers/PacketController.php
/**
     * Remove the specified resource from storage.
     *
     * @param \App\Models\Packet $packet
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Packet $packet = null, $id)
    {
        Packet::findOrFail($id)->delete();
        return redirect('/');
    }
public function destroy ( Packet $ packet = null , $ id ) { Packet :: findOrFail ( $ id ) -> delete ( ) ; return redirect ( '/' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .