Closed veneliniliev closed 3 years ago
@veneliniliev
I had a similar problem a while ago and this is how I solved it.
// config/nova-page-manager.php
'page_url' => \App\Helpers\NovaPageManagerHelper::class . '::pageUrl',
// app/Helpers/NovaPageManagerHelper.php
<?php
namespace App\Helpers;
use OptimistDigital\NovaPageManager\Models\Page;
class NovaPageManagerHelper
{
public static function pageUrl(Page $page)
{
return route('page.show', $page->locale . $page->path);
}
}
Hope this helps!
we have problem with
config:cache
/optimize
and closures in config...here has some info for this problem: https://github.com/laravel/framework/issues/9625
example from config: