laravel allow all fillable code example
Example 1: laravel allow all fillable
protected $hidden = ['updated_at'];
protected $guarded = ['updated_at'];
Example 2: laravel allow all fillable
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'];
}