app/Http/Controllers/PartnerController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Partner  $partner
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Partner $partner)
    {
        $inputs = $request->except('submit');
        $inputs['image'] = File::update('partners', 'image', $partner);
        $partner->update($inputs);
        return $this->redirect($partner);
    }
public function update ( Request $ request , Partner $ partner ) { $ inputs = $ request -> except ( 'submit' ) ; $ inputs [ 'image' ] = File :: update ( 'partners' , 'image' , $ partner ) ; $ partner -> update ( $ inputs ) ; return $ this -> redirect ( $ partner ) ; }
Update the specified resource in storage.
Update the specified resource in storage .