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

Closed
opened 2023-04-30 09:34:57 +00:00 by mahavishnup · 1 comment
mahavishnup commented 2023-04-30 09:34:57 +00:00 (Migrated from github.com)

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(); }

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 2023-07-06 20:34:10 +00:00 (Migrated from github.com)

but what happens if someone doesn't use FilamentCompanies?

but what happens if someone doesn't use FilamentCompanies?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-spotlight#17
No description provided.