Martin Oscar
Martin Oscar
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
Is there a way i could debug using smth like dump($this->hasSpaMode()); ?
15 replies
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
nope
15 replies
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
Still nothing
Using filament 3.2.124 it that can help
15 replies
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
Sadly doesn't; its like if spaExceptions are never working unless i use * so might aswell not use spa in the first place; i just want to disable it on the console page tho
15 replies
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
Hey thanks for your reply. Ok, then how am i supposed to exclude /server/{tenant}/console from spa ? Even the url('/server/*/console') couldn't save me
15 replies
FFilament
Created by Martin Oscar on 2/10/2025 in #❓┊help
can getOptionLabelUsing() include html ?
Nope good try tho
Also had to change printf to sprintf otherwise it would complain
Parameter #1 $html of class Illuminate\Support\HtmlString constructor expects string, int given.
🪪 argument.type
Parameter #1 $html of class Illuminate\Support\HtmlString constructor expects string, int given.
🪪 argument.type
Resulting html
<div class="choices__list" role="listbox">
<div id="choices--dataalert_banner_status-item-choice-1"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="1"
data-value="info" data-select-text="" data-choice-selectable="" aria-selected="false">Info</div>
<div id="choices--dataalert_banner_status-item-choice-2"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="2"
data-value="warning" data-select-text="" data-choice-selectable="" aria-selected="false">Warning</div>
<div id="choices--dataalert_banner_status-item-choice-3"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="3"
data-value="danger" data-select-text="" data-choice-selectable="">Danger</div>
<div id="choices--dataalert_banner_status-item-choice-4"
class="choices__item choices__item--choice is-selected choices__item--selectable is-highlighted" role="option"
data-choice="" data-id="4" data-value="success" data-select-text="" data-choice-selectable=""
aria-selected="true">Success</div>
</div>
<div class="choices__list" role="listbox">
<div id="choices--dataalert_banner_status-item-choice-1"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="1"
data-value="info" data-select-text="" data-choice-selectable="" aria-selected="false">Info</div>
<div id="choices--dataalert_banner_status-item-choice-2"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="2"
data-value="warning" data-select-text="" data-choice-selectable="" aria-selected="false">Warning</div>
<div id="choices--dataalert_banner_status-item-choice-3"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="3"
data-value="danger" data-select-text="" data-choice-selectable="">Danger</div>
<div id="choices--dataalert_banner_status-item-choice-4"
class="choices__item choices__item--choice is-selected choices__item--selectable is-highlighted" role="option"
data-choice="" data-id="4" data-value="success" data-select-text="" data-choice-selectable=""
aria-selected="true">Success</div>
</div>
Instead of
<div class="choices__list" role="listbox">
<div id="choices--dataalert_banner_status-item-choice-1"
class="choices__item choices__item--choice choices__item--selectable is-highlighted" role="option"
data-choice="" data-id="1" data-value="info" data-select-text="" data-choice-selectable="" aria-selected="true">
<span class="text-info-600 dark:text-info-500">Info</span></div>
<div id="choices--dataalert_banner_status-item-choice-2"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="2"
data-value="warning" data-select-text="" data-choice-selectable=""><span
class="text-warning-600 dark:text-warning-500">Warning</span></div>
<div id="choices--dataalert_banner_status-item-choice-3"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="3"
data-value="danger" data-select-text="" data-choice-selectable=""><span
class="text-danger-600 dark:text-danger-500">Danger</span></div>
<div id="choices--dataalert_banner_status-item-choice-4"
class="choices__item choices__item--choice is-selected choices__item--selectable" role="option" data-choice=""
data-id="4" data-value="success" data-select-text="" data-choice-selectable=""><span
class="text-success-600 dark:text-success-500">Success</span></div>
</div>
<div class="choices__list" role="listbox">
<div id="choices--dataalert_banner_status-item-choice-1"
class="choices__item choices__item--choice choices__item--selectable is-highlighted" role="option"
data-choice="" data-id="1" data-value="info" data-select-text="" data-choice-selectable="" aria-selected="true">
<span class="text-info-600 dark:text-info-500">Info</span></div>
<div id="choices--dataalert_banner_status-item-choice-2"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="2"
data-value="warning" data-select-text="" data-choice-selectable=""><span
class="text-warning-600 dark:text-warning-500">Warning</span></div>
<div id="choices--dataalert_banner_status-item-choice-3"
class="choices__item choices__item--choice choices__item--selectable" role="option" data-choice="" data-id="3"
data-value="danger" data-select-text="" data-choice-selectable=""><span
class="text-danger-600 dark:text-danger-500">Danger</span></div>
<div id="choices--dataalert_banner_status-item-choice-4"
class="choices__item choices__item--choice is-selected choices__item--selectable" role="option" data-choice=""
data-id="4" data-value="success" data-select-text="" data-choice-selectable=""><span
class="text-success-600 dark:text-success-500">Success</span></div>
</div>
4 replies
FFilament
Created by Martin Oscar on 2/8/2025 in #❓┊help
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
I managed to make it sort of work with
->spaUrlExceptions(fn (): array => [
Console::getUrl(panel: 'server', tenant: Server::query()->find(1)),
])
->spaUrlExceptions(fn (): array => [
Console::getUrl(panel: 'server', tenant: Server::query()->find(1)),
])
But
->spaUrlExceptions(fn (): array => [
Console::getUrl(panel: 'server', tenant: Filament::getTenant()),
])
->spaUrlExceptions(fn (): array => [
Console::getUrl(panel: 'server', tenant: Filament::getTenant()),
])
Still doesn't work Also tried url('server/*/console') but spa is still enabled on that url
15 replies
FFilament
Created by Martin Oscar on 1/26/2025 in #❓┊help
SelectFilter->getOptionLabelFromRecordUsing
That may be the correct way instead of querying a pivot table each time ty 👌
5 replies
FFilament
Created by Martin Oscar on 1/6/2025 in #❓┊help
modifyRuleUsing on Repeater
tysm im dumb 🥲
6 replies
FFilament
Created by Martin Oscar on 12/6/2024 in #❓┊help
"live" headerActions
OK so its because of headerActions being forcefully cached HeaderActions.php#L19 HasHeaderActions.php#L39 If this was somehow a boolean like ->cache(false) that'd be amazing
5 replies
FFilament
Created by Martin Oscar on 12/6/2024 in #❓┊help
"live" headerActions
Hey thank for your quick reply; Since we are already handling websockets via JS (for console and to send power actions) i don't want to use reverb. I'll try using Livewire custom component kinda like we already with cpu, ram, disk, network Widgets
That would be so cool if the static way worked out of the box in the future 👌
5 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Well lets forget the whole override thing imagine i want to use
$panel->revealablePasswords(config('panel.password.revealable'))
$panel->revealablePasswords(config('panel.password.revealable'))
instead the fields still aren't revealable() even though that var is true @see
Also i don't know why but they are not revealable() by default unless i tell the component to be even if (bool) $panel->arePasswordsRevealable = true
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Don't worry we've tried stuff and even though it didn't work we both learned move Filament so i guess kinda win ? Yeah if it ain't broke don't fix it 🤪
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
I see, that's what i'v done without success, it works for you cause its setting "hardcoded" stuff whereas i need to check if the $component has the bool isPassword = true Also you should put
->brandLogo(asset('img/hrlink-logo.svg'))
->darkModeBrandLogo(asset('img/hrlink-logo-light.svg'));
->brandLogo(asset('img/hrlink-logo.svg'))
->darkModeBrandLogo(asset('img/hrlink-logo-light.svg'));
under your PanelProvider
public function panel(Panel $panel): Panel
return $panel
public function panel(Panel $panel): Panel
return $panel
instead of a register method @see Assuming you are using Filament 3.x
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Is your code opensource so i can take a look at it ?
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Did you ever overcome the issue yourself with either of those methods ?
Im afraid i'll have to use something like
TextInput::macro('password', function () {
return $this->password()->revealable(config('panel.password.revealable'));
});
TextInput::macro('password', function () {
return $this->password()->revealable(config('panel.password.revealable'));
});
Edit macros doesn't work for that either
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Ok so i made a middleware with a configureUsing() method and added it to $panel->middleware([]) inside AdminPanelProvider but the debug no longer appears on the page so it doesn't seem like it cares one bit
Moved it to handle(), debug is back but it still always returns false
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Thanks for trying to help me still
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
It gets called out i see the dump on the page but it still gets called before the component is actually made
dump($component->isPassword(), $component->getLabel());

produces :
false // app/Providers/ConfigurationServiceProvider.php:17

"Username" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Email" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Password" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Password confirmation" // app/Providers/ConfigurationServiceProvider.php:17
dump($component->isPassword(), $component->getLabel());

produces :
false // app/Providers/ConfigurationServiceProvider.php:17

"Username" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Email" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Password" // app/Providers/ConfigurationServiceProvider.php:17

false // app/Providers/ConfigurationServiceProvider.php:17

"Password confirmation" // app/Providers/ConfigurationServiceProvider.php:17
it goes on and on but i cut it so i don't flood
23 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
Do you need to import the ConfigurationServiceProvider somewhere else for it to get called later or bootstrap/providers.php should do the job ? cause mine is still too early just like if i made that under boot no change at all
23 replies