pxlrbt/filament-spotlight

Missing required parameter for [Route: filament.pages.companies/{company}] [URI: companies/{company}] [Missing parameter: company].

Closed this issue · 1 comments

Path: src/Actions/RegisterPages.php

$url = $page::getUrl();

replace to

if (in_array($page, ['Wallo\FilamentCompanies\Pages\Companies\CompanySettings'], true) && FilamentCompanies::hasCompanyFeatures()) { $url = $page::getUrl([Auth::user()?->currentCompany]); } else { $url = $page::getUrl(); }

grafst commented

but what happens if someone doesn't use FilamentCompanies?