6 changed files with 74 additions and 20 deletions
-
17MySQL_change.sql
-
24app/AdminSupplier/Controllers/OrderController.php
-
24app/Http/Controllers/Api/OrderController.php
-
6app/Http/Controllers/Api/TestController.php
-
5app/Models/Order.php
-
18app/Models/OrderProductItem.php
@ -0,0 +1,18 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|||
|
|||
class OrderProductItem extends BaseModel |
|||
{ |
|||
use HasFactory; |
|||
|
|||
protected $guarded = ['id']; //不允许批量赋值的字段
|
|||
|
|||
public function __construct(array $attributes = []) |
|||
{ |
|||
parent::__construct($attributes); |
|||
$this->timestamps = false; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue