Laravel Accessor 호출 방식
Accessor 호출 방식: php// Model 메서드명 → Blade에서 호출getSaleStatusTextAttribute() → $product->sale_status_textgetDdayAttribute() → $product->d_daygetTimeRemainingAttribute() → $product->time_remaininggetLowestPriceAttribute() → $product->lowest_price일반 메서드 호출: php// 일반 메서드는 ()를 붙여서 호출isOnSale() → $product->isOnSale()hasOption() → $product->hasOption('best')Blade 템플릿 사용 예시: php// index.blade.php{{ $pr..
laravel
2025. 10. 10. 12:14
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- laravel
- ci/cd
- 홈마
- 홈마뜻
- 메서드호출
- thesunny
- Accessor
- 의정부 삼계탕
- 스크립트강좌
- 라라벨프로젝트
- 프로젝트생성
- 깃연동
- citykid
- 스크립트기초
- 깃생성
- 깃허브자동배포
- 민락골
- css
- php신규생성
- 깃자동배포
- 라라벨
- 신규생성
- nginx설정
- 깃계정변경
- 엔진엑스설정
- github
- 캐시테이블
- 라라벨설정
- 더서니
- 서니
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
글 보관함
반응형