Closed f-liva closed 4 years ago
Took me a while but I finally got to it. Thank you very much for the report.
How can we access this page information in a controller?, I need to use a select field to set the currency in the system.
You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods
More specifically the Page::option()
method.
You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods
More specifically the Page::option()
method.
You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods
More specifically the Page::option()
method.
Thanks
I tried to use it but it shows an error:
"Class 'Page' not found"
use \Page;
// or
use Whitecube\NovaPage\NovaPageFacade as Page;
From AppServiceProvider
$pages->registerOption('general', GeneralOptions::class);
don't works$pages->register('option', 'general', GeneralOptions::class);
it works