| 12345678910111213141516171819202122232425 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\LogModelChanging;
- class OwnerInStorageRule extends Model
- {
- use LogModelChanging;
- protected $fillable = [
- "owner_price_operation_id", //作业计费ID
- "amount", //计量
- "unit_id", //单位ID
- "unit_price", //单价
- ];
- public $timestamps=false;
- public function unit()
- { //单位
- return $this->hasOne(Unit::class,"id","unit_id");
- }
- }
|