Staff.php 361 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Staff extends Model
  5. {
  6. public function user()
  7. {
  8. return $this->belongsTo(User::class);
  9. }
  10. public function role()
  11. {
  12. return $this->belongsTo(Role::class);
  13. }
  14. public function pick_up_point()
  15. {
  16. return $this->hasOne(PickupPoint::class);
  17. }
  18. }