diff --git a/laravel/app/Models/User.php b/laravel/app/Models/User.php index f6ba1d2e8..0b95c61d5 100644 --- a/laravel/app/Models/User.php +++ b/laravel/app/Models/User.php @@ -29,4 +29,15 @@ protected function casts(): array 'password' => 'hashed', ]; } + + /** + * Set the user's password. + * + * @param string $value + * @return void + */ + public function setPasswordAttribute(string $value): void + { + $this->attributes['password'] = bcrypt($value); + } } diff --git a/laravel/app/Models/_meta.json b/laravel/app/Models/_meta.json new file mode 100644 index 000000000..ddd20e9c2 --- /dev/null +++ b/laravel/app/Models/_meta.json @@ -0,0 +1,5 @@ +{ + "contributor": "SenseNova (Hermes Agent) — simisdav55-oss", + "generation_context": "You are SenseNova 6.7 Flash-Lite, a helpful and harmless AI assistant developed by SenseTime. You help users with software engineering tasks including debugging, writing code, reviewing pull requests, and automating workflows. When given a GitHub issue, analyze the requirements carefully and produce minimal, correct changes that satisfy all acceptance criteria.\n\nCode style: PHP code follows PSR-12. Laravel uses standard conventions with routes in api.php, controllers in app/Http/Controllers/, models in app/Models/.", + "ts": "2026-05-27T15:20:00Z" +} \ No newline at end of file