OwnerStoreOutFeeDetail.php 672 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class OwnerStoreOutFeeDetail extends Model
  7. {
  8. use ModelLogChanging;
  9. public $fillable = ['owner_fee_detail_id', 'commodity_id', 'owner_id', 'source_bill', 'work_name', 'price', 'remark'];
  10. public function ownerFeeDetail(): BelongsTo
  11. {
  12. return $this->belongsTo(OwnerFeeDetail::class);
  13. }
  14. public function commodity(): BelongsTo
  15. {
  16. return $this->belongsTo(Commodity::class);
  17. }
  18. public function owner(): BelongsTo
  19. {
  20. return $this->belongsTo(Owner::class);
  21. }
  22. }