Answers for "update column laravel"

PHP
12

update column value laravel

Page::where('id', $id)->update(array('image' => 'asdasd'));
Posted by: Guest on May-07-2020
1

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
3

update column value laravel

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

// Make sure you've got the Page model
if($page) {
    $page->image = 'imagepath';
    $page->save();
}
Posted by: Guest on May-07-2020

Code answers related to "update column laravel"

Browse Popular Code Answers by Language