Files
sam-manage/app/Models/User.php
hskwon ece1f28747 feat: MNG 인증 시스템 구현
- Laravel Sanctum 기반 세션 인증 시스템 구축
- Service-First 아키텍처: AuthService 작성
- FormRequest 분리: LoginRequest 검증
- DaisyUI 기반 로그인 UI 구현
- 라우트 설정: /login, /logout, /dashboard
- Tailwind CSS 4.x PostCSS 설정
- Vite 빌드 완료

Phase 1-1: 인증 시스템 개발 완료
2025-11-20 16:24:40 +09:00

49 lines
1009 B
PHP

<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}