Laravel Model를 사용하다보면 $hidden이라고 정의 된 부분이 있다.
이게 무엇을 의미하는지 몰라 찾아보았는데
https://stackoverflow.com/questions/59408246/what-effect-does-hidden-have-exactly-in-eloquent-model
라라벨 API 페이지로 들어가보니
https://laravel.com/api/6.x/Illuminate/Database/Eloquent/Model.html
DB 조회 후 Model에 Seriailization 을 하는데, 이때 자동으로 들어가지 않도록 설정해주는 변수명이다.
'배우고 있습니다 > PHP' 카테고리의 다른 글
[laravel] rules max, count와 mb_strlen (0) | 2024.02.28 |
---|---|
[PHP 기초] 금칙어 / 단어 필터링 (0) | 2019.11.10 |
[PHP] 개발 기초 함수 정리 ( var_dump / preg_match ) (0) | 2019.11.10 |