Components\MediaManager\Controllers\Backend\MediaManagerController::update PHP Метод

update() публичный Метод

Update the specified media_entry in storage.
public update ( integer $id ) : Response
$id integer
Результат Response
    public function update($id)
    {
        $input = Input::all();
        try {
            $media_entry = MediaEntry::findOrFail($id);
            $media_entry->update($input);
            return Redirect::to("backend/media-manager")->with('success_message', trans('success_messages.media_entry_update'));
        } catch (ValidationException $e) {
            return Redirect::back()->withInput()->withErrors($e->getErrors());
        }
    }