Changeset d25ba66 for app/Models
- Timestamp:
- 02/24/21 17:04:35 (4 years ago)
- Branches:
- master
- Children:
- 0c07a90
- Parents:
- 1f059b0
- Location:
- app/Models
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/Post.php
r1f059b0 rd25ba66 16 16 return $this->belongsTo(User::class); 17 17 } 18 19 public function review() { 20 return $this->hasOne(Review::class); 21 } 22 23 public function needReview() 24 { 25 return PostSecurity::whereRoleId($this->user->role->id)->first(); 26 } 18 27 19 28 public function category() {
Note:
See TracChangeset
for help on using the changeset viewer.