123456789101112131415161718192021222324 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Staff extends Model
- {
- public function user()
- {
- return $this->belongsTo(User::class);
- }
- public function role()
- {
- return $this->belongsTo(Role::class);
- }
- public function pick_up_point()
- {
- return $this->hasOne(PickupPoint::class);
- }
- }
|