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