Model

· IT/라라벨
$attributes 는 Model 에서 라라벨의 필드를 담는 배열 변수이다. 보통 $attributes 를 통해 Model 필드에 접근 하는건 Mutator 나 cast 같은 내부 메소드를 통해 접근할때 일것이다. ex) use App\Support\Address; use Illuminate\Database\Eloquent\Casts\Attribute; /** * Interact with the user's address. * * @return \Illuminate\Database\Eloquent\Casts\Attribute */ protected function address(): Attribute { return Attribute::make( get: fn ($value, $attributes) =..
_이준호_
'Model' 태그의 글 목록