'int', 'component_id' => 'int', 'component_status' => 'int', ]; /** * The fillable properties. * * @var string[] */ protected $fillable = [ 'schedule_id', 'component_id', 'component_status', ]; /** * The validation rules. * * @var string[] */ public $rules = [ 'schedule_id' => 'required|int', 'component_id' => 'required|int', 'component_status' => 'required|int', ]; /** * Get the schedule relation. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function schedule() { return $this->belongsTo(Schedule::class); } /** * Get the component relation. * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function component() { return $this->hasOne(Component::class); } }