SLINZEN
SLINZEN
FFilament
Created by SLINZEN on 5/12/2024 in #❓┊help
wire:click result in an exception
Hi, I have a problem with a custom livewire component. My button:
<button wire:click="nextReportStep" class="bttn-2">Weiter</button>
<button wire:click="nextReportStep" class="bttn-2">Weiter</button>
And this function in my class:
public function nextReportStep(): void
{
$this->reportStep++;
}
public function nextReportStep(): void
{
$this->reportStep++;
}
Result in this: Alpine Expression Error: undefined Expression: "$wire.nextReportStep" Uncaught String {'Could not find Livewire component in DOM tree', el: button.bttn-2, expression: '$wire.nextReportStep'}
21 replies
FFilament
Created by SLINZEN on 2/26/2024 in #❓┊help
"Maximum execution time of 30 seconds exceeded" in hasEvenNumberOfParentheses Function
Hello everyone, I'm encountering an issue in a Laravel project (Laravel version 10.45.1, PHP version 8.2.15, Filament version 3.2.37) and am hoping someone might be able to offer some assistance. I'm receiving the following error when executing a specific function in my code: Fatal error: Maximum execution time of 30 seconds exceeded The error occurs in the following function:
protected static function hasEvenNumberOfParentheses(string $expression)
{
$tokens = token_get_all('<?php '.$expression);
// Additional function logic...
}
protected static function hasEvenNumberOfParentheses(string $expression)
{
$tokens = token_get_all('<?php '.$expression);
// Additional function logic...
}
The function hasEvenNumberOfParentheses is intended to check if a given expression has an even number of parentheses. The error seems to be triggered by the call to token_get_all('<?php '.$expression);, suggesting that parsing the expression takes too long. Does anyone have any insights on how to resolve this issue? Any help or suggestions would be greatly appreciated! Thank you in advance!
3 replies
FFilament
Created by SLINZEN on 1/10/2024 in #❓┊help
TextInput default = object?
Hi, I want to set a default value in my Input. Example:
TextInput::make('')
->label('Test')
->default('Hi Discord.')
->readOnly()
TextInput::make('')
->label('Test')
->default('Hi Discord.')
->readOnly()
But the input value is [object Object]
9 replies
FFilament
Created by SLINZEN on 12/5/2023 in #❓┊help
Fix navigation menu
Hi, anyone knows how to fix the navigation?
1 replies