StationRuleBatch.php 557 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  5. use Illuminate\Database\Eloquent\Relations\HasOne;
  6. use App\Traits\ModelLogChanging;
  7. class StationRuleBatch extends Model
  8. {
  9. use ModelLogChanging;
  10. protected $fillable=['name','station_type_id','batch_type','owner_id'];
  11. public function stationType(): BelongsTo
  12. {
  13. return $this->belongsTo(StationType::class);
  14. }
  15. public function owner() :BelongsTo
  16. {
  17. return $this->belongsTo(Owner::class);
  18. }
  19. }