app/Http/Controllers/MedicineController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Medicine  $medicine
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Medicine $medicine)
    {
        $cat = Category::all();
        $sup = Supplier::all();
        $data = $medicine;
        return view('medicine.edit', compact('data','sup','cat'));
    }
public function edit ( Medicine $ medicine ) { $ cat = Category :: all ( ) ; $ sup = Supplier :: all ( ) ; $ data = $ medicine ; return view ( 'medicine.edit' , compact ( 'data' , 'sup' , 'cat' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .