laravel 填坑 to fillable property to allow mass assignment on

post修改數據的時候,返回的錯誤狀態 解決方法:在對應的model裏面添加對應的字段即可 <?php namespace App\Api\Models; use Illuminate\Database\Eloquent\Model; class User extends Model { // 加上對應的字段 protected $fillable = ['name', 'e
相關文章
相關標籤/搜索