| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App;
- use App\Traits\ModelTimeFormat;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class LaborCompany extends Model
- {
- use ModelLogChanging;
- use ModelTimeFormat;
- protected $fillable = [
- 'id',
- 'name',//名称
- 'warehouse_id',//仓库ID
- 'priority',//优先级 数字越大优先级越高
- 'mail',//邮箱
- 'man_num',//男工人数
- 'woman_num',//女工人数
- ];
- /**
- * @return BelongsTo
- */
- public function warehouse(): BelongsTo
- {
- return $this->belongsTo(Warehouse::class);
- }
- }
|