- DaisyUI 완전 제거, Pure Tailwind CSS로 전환 - oklch() 색상 함수 → hex 색상으로 변경 (구형 브라우저 지원) - 로그인 페이지 Tailwind 유틸리티 클래스로 리팩토링 - CSS 빌드 사이즈 74.82KB → 23.15KB 최적화 - DB_HOST 설정 수정 (sam-mysql-1 → 127.0.0.1) ## 변경 내역 - tailwind.config.js: DaisyUI 제거, custom 색상 정의 - resources/views/auth/login.blade.php: DaisyUI 클래스 → Tailwind 유틸리티 - resources/css/app.css: CSS 변수 추가 - .env: DB_HOST 로컬 접근 설정 - docs/INDEX.md: MNG 문서 인덱스 추가 ## 해결된 문제 - Safari <15.4, Chrome <111에서 CSS 미적용 문제 해결 - 모든 브라우저에서 로그인 페이지 정상 작동 확인
63 lines
1.4 KiB
PHP
63 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Laravel\Sanctum\HasApiTokens;
|
|
|
|
class User extends Authenticatable
|
|
{
|
|
use HasApiTokens, HasFactory, Notifiable, SoftDeletes;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $fillable = [
|
|
'user_id',
|
|
'name',
|
|
'email',
|
|
'phone',
|
|
'password',
|
|
'options',
|
|
'profile_photo_path',
|
|
'role',
|
|
'is_active',
|
|
'is_super_admin',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be hidden for serialization.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $hidden = [
|
|
'password',
|
|
'remember_token',
|
|
'two_factor_secret',
|
|
'two_factor_recovery_codes',
|
|
'two_factor_confirmed_at',
|
|
'deleted_at',
|
|
];
|
|
|
|
/**
|
|
* Get the attributes that should be cast.
|
|
*
|
|
* @return array<string, string>
|
|
*/
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'email_verified_at' => 'datetime',
|
|
'last_login_at' => 'datetime',
|
|
'password' => 'hashed',
|
|
'options' => 'array',
|
|
'is_active' => 'boolean',
|
|
'is_super_admin' => 'boolean',
|
|
];
|
|
}
|
|
} |