Hi all. If I create a page using the config file like…
'routes' => [
[
'pattern' => '/cc/authorize',
'action' => function () {
return new Page([
'slug' => 'authorize',
'template' => 'cc-authorize',
'content' => [
'title' => 'Authorize',
'refresh_token' => 'blamp123'
]
]);
},
'method' => 'GET|POST'
]
],
… can I later update say the refresh_token field? The following doesn’t seem to work.
$kirby->impersonate('kirby');
$newPage = page('cc/authorize')->update([
'refresh_token' => 'something'
]);
Please advise.