Solution for "update table with new column in laravel 8"

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

update column value laravel

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

update column value laravel

Similar codes for "update table with new column in laravel 8"


Latest 'PHP' questions

Added before "update table with new column in laravel 8"