| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class LogisticTiming extends Model
- {
- //
- protected $fillable = [
- 'logistic_id','to_province_id','to_city_id','days_at_working'
- ];
- public function logistic()
- {
- return $this->belongsTo(Logistic::class);
- }
- public function province()
- {
- return $this->belongsTo(Province::class,'to_province_id','id');
- }
- public function city()
- {
- return $this->belongsTo(City::class,'to_city_id','id');
- }
- }
|