StationRuleBatch.php 458 B

123456789101112131415161718192021
  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. }