app/Http/Controllers/MedicineController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Medicine  $medicine
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Medicine $medicine)
    {
        $medicine->delete();
        return response()->json([
            'message' => 'medicine deleted successfully!'
        ], 200);
    }
public function destroy ( Medicine $ medicine ) { $ medicine -> delete ( ) ; return response ( ) -> json ( [ 'message' => 'medicine deleted successfully!' ] , 200 ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .