반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- win32
- Java
- Sentinel
- Bootstrap
- php
- 코로나
- 인민공원
- reactnative
- 전자소송
- as후기
- 사업자계좌
- Blade
- 체당금
- Python
- 이더리움
- 보정명령
- javascript
- 홈택스
- Eclipse
- Tutorial
- 코로나19
- 소액임금체불
- 당사자표시정정신청서
- elasticSearch
- cartalyst
- blockchain
- Laravel
- vue
- auth
- 개인사업자
Archives
- Today
- Total
목록comment (1)
그냥 사는 이야기

Post와 Comment 구현 Model App/Post class Post extends Model { protected $guarded = []; public function comments() { return $this->hasMany('App\Comment','on_post'); } public function author() { return $this->belongsTo('App\User','author_id'); } } App/Comment class Comment extends Model { protected $guarded = []; public function author() { return $this->belongsTo('App\User','from_user'); } public fun..
Development/Web
2020. 1. 22. 10:52