📜  laravel 允许所有可填充 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:52.440000             🧑  作者: Mango

代码示例2
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Audio extends Model
{
    use HasFactory;
    //Add this below
    protected $hidden        = ['updated_at'];
    protected $guarded       = ['updated_at'];
}