i have update my table in the database and add new column user_id but when i create new model instance i don't find this column as attribute, actually i don't have any attribute in the model instance
Model
class Event extends Model
{
use HasFactory;
public $timestamps = true;
protected $fillable = ['reminder_id','title','start_at','end_at','all_day','description','folder_task_id','user_id'];
// relations
public function folder_task()
{
return $this->belongsTo(FolderTask::class);
}
public function timer()
{
return $this->hasOne(Timer::class);
}
}
Controller
$this->event = new Event();
dd($this->event);
Result
