LancelotGamer
Reorderable button does not update automatically {hide/show} when the condition argument changes
I have this code in my resource class
And I have this code in my ListRecords class
When I change the tab, I want the reorder button to appear only if the tab is not equal to all.
The reorder button is always hidden.
2 replies
How can I throw an exception and send a notification in handleRecordCreation() method
I am trying to send an email when I create a record
If the email was not send an exception is thrown
I am catching the exception then I am sending a notification
But I am getting this error:
App\Filament\Resources\TicketResource\Pages\CreateTicket::handleRecordCreation(): Return value must be of type Illuminate\Database\Eloquent\Model, none returned
How can I handle this?
8 replies
How can I hide/disable the back button in the wizard layout?
Is it possible to hide/disable the back button in the Wizard layout?
I don't want the user to go to the previous step
https://filamentphp.com/docs/3.x/forms/layout/wizard
Another question:
When I added a custom submit button to the wizard layout, it dose not show the loading animation.
2 replies
How can I get the state of the file upload and save the uploaded files
I have a form action to upload multiple files
When I upload more than 2 files, I am getting only the last uploaded file name
dd output:
array:1 [▼ // app\Filament\Resources\TicketResource\Pages\EditTicket.php:423
0 => "EUAPX1blrjo62ngqh7ZkUw0BzlA8vB-metac3NsYWNjZXNzbG9nX3ZpYnJhZm9uZS5jb18xMF8xN18yMDIzLmd6-.gz"
]
2 replies
package issue (jeffgreco13/filament-breezy)
After running composer require jeffgreco13/filament-breezy
An error appeared
BadMethodCallException
Method Filament\Panel::getDomains does not exist.
at vendor\filament\support\src\Concerns\Macroable.php:72
68▕ {
69▕ $macro = static::getMacro($method);
70▕
71▕ if ($macro === null) {
➜ 72▕ throw new BadMethodCallException(sprintf(
73▕ 'Method %s::%s does not exist.',
74▕ static::class,
75▕ $method,
76▕ ));
i Bad Method Call: Did you mean Filament\Panel::getDomain() ?
1 vendor\jeffgreco13\filament-breezy\routes\web.php:10
Filament\Support\Components\Component::__call("getDomains", [])
2 vendor\laravel\framework\src\Illuminate\Routing\Router.php:502
Illuminate\Support\ServiceProvider::{closure}(Object(Illuminate\Routing\Router))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Using filament v3
3 replies
Image column URL
I have local project that contain the following:
Laravel Filament project
A Python service that handle image processing, creating thumbnail and saving the images to ftp server or local server etc..
I have an HTTP PHP 7.4.3 Development Server to get the images via URL beside the ftp server
My question is: How can I get the images using just a URL like this: http://127.0.0.1:2774/files/eDPEFoHNJu.png
2 replies
How to show / edit pivot attributes in a relation manager
I have two models
- Post Model
- Comment Model
Each of them has belongsToMany() relation
Note: Attaching and detaching are working fine
When I add the edit action
Laravel gives me this error
Filament\Resources\RelationManagers\RelationManager::Filament\Resources\RelationManagers{closure}(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, null given
And is it possible to show pivot attributes along with model attattributes
12 replies