Level 2
Fixed it by
php artisan optimize:clear
rm -rf ./vendor
composer install
<overview card="[object Object]" lens="" class=""></overview>
The nova-component shows up locally fine but going to a dev environment it doesn't show up. Ran composer install. Nothing in the logs.
NovaServiceProvider.php
if(Auth()->user()->hasRole('Admin') || Auth()->user()->hasRole('Coordinator') ) {
return [
// new Help,
new ActiveInactiveMembers,
new TotalDocuments,
new TotalActiveRfs,
];
} else {
return [
(new Overview)->currentUser(),
];
}
Overview.php
public function component()
{
return 'overview';
}
public function currentUser()
{
return $this->withMeta(['currentUser' => Auth()->user()->id]);
}
Again it shows fine in local. What step am i missing to get it working in the dev environment?
Please or to participate in this conversation.