@JellBool 我发现在Lumen 里面的貌似不用 fillable, 是因为Base Model 里面的属性设置吗?什么原理?
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BaseModel extends Model
{
protected $guarded = ['id', 'updated_at'];
protected $casts = ['created_at', 'updated_at'];
protected $hidden = ['updated_at', 'deleted_at', 'extra'];
}