12345678910111213141516171819202122232425 |
- <?php
- namespace App\Models;
- # use Illuminate\Database\Eloquent\Model;
- class Point extends Model
- {
- protected $table = 'point';
- public function lastChildReview()
- {
- return $this->hasOne(Point::class, 'id', 'last_child_review_point_id');
- }
- public function lastChildReviewNote()
- {
- return $this->hasOne(Note::class, 'id', 'last_child_review_point_scoped_note_id');
- }
- public function lastChildPlan()
- {
- return $this->hasOne(Point::class, 'id', 'last_child_review_point_id');
- }
- }
|