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