tinkerから更新

>>> $article = App\Article::find(2);
=> App\Article {#2907
id: 2,
login_id: “user2”,
role: “master”,
name: “goto”,
password: “password”,
mail: “laravel@hotmail.com”,
test_mail: “laravel_test@hotmail.com”,
updated_person: “sasaki”,
created_at: “2018-09-22 08:31:54”,
updated_at: “2018-09-22 08:31:54”,
}
>>> $article->password = ‘himitsu’;
=> “himitsu”
>>> $article->save();
=> true
>>> App\Article::all()->toArray();
=> [
[
“id” => 1,
“login_id” => “user1”,
“role” => “master”,
“name” => “taniguchi”,
“password” => “passowrd”,
“mail” => “laravel@gmail.com”,
“test_mail” => “laravel_test@gmail.com”,
“updated_person” => “sasaki”,
“created_at” => “2018-09-21 21:39:07”,
“updated_at” => “2018-09-21 21:39:07”,
],
[
“id” => 2,
“login_id” => “user2”,
“role” => “master”,
“name” => “goto”,
“password” => “himitsu”,
“mail” => “laravel@hotmail.com”,
“test_mail” => “laravel_test@hotmail.com”,
“updated_person” => “sasaki”,
“created_at” => “2018-09-22 08:31:54”,
“updated_at” => “2018-09-22 08:51:32”,
],
]

ほう、sqlコマンドを打たなくてもOKだ。