Remark.php 458 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Remark extends Model
  5. {
  6. protected $table = 'remarks';
  7. protected $guarded = [];
  8. public function teacher()
  9. {
  10. return $this->belongsTo('App\Models\Teacher');
  11. }
  12. public function student()
  13. {
  14. return $this->belongsTo('App\Models\Student');
  15. }
  16. public function course()
  17. {
  18. return $this->belongsTo('App\Models\Course');
  19. }
  20. }