update column value laravel
snippet in php

update column value laravel

user7790

Page::where('id', $id)->update(array('image' => 'asdasd'));

update column value laravel

user3945

$page = Page::find($id);

// Make sure you've got the Page model
if($page) {
    $page->image = 'imagepath';
    $page->save();
}