app/Http/Controllers/CommunicationEquipmentController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\CommunicationEquipment  $communicationEquipment
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(CommunicationEquipment $equipment)
    {
        $unitcodes = UnitCode::where('unitgroup_code', '=', 'ASR')->get();
        $nomenclatures = CommunicationNomenclature::get();
        $equipment = CommunicationEquipment::find($equipment->id);
        return view('pages.logistics.c4sequipment.edit',compact('unitcodes','nomenclatures','equipment'));
    }
public function edit ( CommunicationEquipment $ equipment ) { $ unitcodes = UnitCode :: where ( 'unitgroup_code' , '=' , 'ASR' ) -> get ( ) ; $ nomenclatures = CommunicationNomenclature :: get ( ) ; $ equipment = CommunicationEquipment :: find ( $ equipment -> id ) ; return view ( 'pages.logistics.c4sequipment.edit' , compact ( 'unitcodes' , 'nomenclatures' , 'equipment' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .