Ajith Lal
Remove href from the last child breadcrumb
For example, I have breadcrumbs "Resource Name > Lists > item", "Resource > Lists", I want to remove the # value from the last child of the breadcrumbs.
from the "Item" on first one.
from the "Lists" on the second one.
How do i achieve that?
Thanks in advance.
1 replies
write test for validating fields on the custom form component
I have a custom filament form component with two fields, prompt and SKU, I want to write a test suite for validating the form. Below is the test I have written to do the same but it says the component doesn't have errors
it('will return validation notification submitting invalid data', function () {
$component = livewire(MagentoForm::class)
->fillForm([
'prompt' => 1,
'sku' => ''
])
->assertHasFormErrors(['sku' => 'The sku field is required.']);
});
7 replies
Livewire error after upgrading filament from 2.x to 3.x
I have recently upgraded one of my project from Laravel 9.x to 10.x along with filament. I used the filament upgrade package from the filament website to do that. Once the upgrade is done Iḿ receiving an error Uncaught SyntaxError: Invalid or unexpected token (at livewire.js?id=8a199ab2:9407:1) . I did some research and I found some fixes telling that it is occurring because of the empty line on the project. So I have scanned my entire project and made sure there are no whitespace or blank line at the first line of php files.
Thanks in advance.
15 replies