StationTaskBatch.php 309 B

123456789101112131415
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class StationTaskBatch extends Model
  5. {
  6. protected $fillable=['batch_id','station_id','station_mission_batch_type_id','status'];
  7. public function batch()
  8. { //波次
  9. return $this->hasOne(Batch::class,"id","batch_id");
  10. }
  11. }