- 新增3个migration(15张表): service/nanny/inventory - 新增15个Model + 13个Controller - 新增55条API路由(总计212条) - 新增3个前端API模块 + 11个管理页面 - vite build验证通过
11 lines
334 B
PHP
11 lines
334 B
PHP
<?php
|
|
namespace App\Models\Inventory;
|
|
use App\Traits\BelongsToStore;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
class Supplier extends Model
|
|
{
|
|
use BelongsToStore;
|
|
protected $fillable = ['store_id','name','contact','phone','address','bank_info','status'];
|
|
protected function casts(): array { return ['status'=>'integer']; }
|
|
}
|