josecaubivasconcelosjunior
josecaubivasconcelosjunior
FFilament
Created by josecaubivasconcelosjunior on 8/7/2023 in #❓┊help
Is it possible to customize table view files?
I will try your tips. Thank you for your replies 🤝 🙂
7 replies
FFilament
Created by josecaubivasconcelosjunior on 8/7/2023 in #❓┊help
Is it possible to customize table view files?
Hi Patrick. I don't really intend to make global changes, but rather explore how the magic happens. I'm in a safe environment, where my project is only intended to test the limitations that the filament may have and thus have a better idea of ​​where and when I can really apply it, so I'm looking for alternatives that make it possible to test and break things to understand how they happen or at least part of them, in short, I'm having fun.
7 replies
FFilament
Created by Miguilim on 8/4/2023 in #❓┊help
Null state for table column
->formatStateUsing Doesn't solve your problem? https://filamentphp.com/docs/2.x/tables/columns/text#custom-formatting
7 replies
FFilament
Created by josecaubivasconcelosjunior on 8/4/2023 in #❓┊help
hi guys, exists equivalent beforeFill for modal?
Resolved: Tables\Actions\ViewAction::make() ->mutateRecordDataUsing(function (array $data): array { // my code
return $data; })
3 replies
FFilament
Created by josecaubivasconcelosjunior on 8/1/2023 in #❓┊help
storeFileNamesIn not able to use original file name as label?
I understand. I tried a lot to work on a change in the vendor files, it seems to me that the component that displays the captions of the files is Fieldset.php, its view structure is identical to the one presented in the browser inspection, but the presence or absence of it , does not seem to have any effect, even deleting all its content, nothing changes, unlike the changes made to the input file present in the FileUpload.php component
5 replies
FFilament
Created by josecaubivasconcelosjunior on 8/1/2023 in #❓┊help
storeFileNamesIn not able to use original file name as label?
I see, I believe it is an interesting resource to have as a complement to the storeFileNameL method. It's not very nice to present a hash as a filename in the view.
5 replies
FFilament
Created by josecaubivasconcelosjunior on 7/6/2023 in #❓┊help
Dual display of notifications
This interrupts the life cycle of the process at any time, I changed the method from beforeSave to beforeValidate, just to be more coherent, without a real need to change 🙂
6 replies
FFilament
Created by josecaubivasconcelosjunior on 7/6/2023 in #❓┊help
Dual display of notifications
Thank you for your reply friend. I managed to solve it with $this->halt(), following the documentation https://filamentphp.com/docs/2.x/admin/resources/editing-records #Halting the saving process
6 replies
FFilament
Created by josecaubivasconcelosjunior on 6/22/2023 in #❓┊help
Using google drive as storage
Yes, drive google is not supported.
5 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
Recreating without using the --simple flag, just following the documentation recommendation php artisan make:filament-resource Customer --generate I was easily able to use protected function afterCreate(): void I was able to reuse all the codes already made for form and table. Thank you for your help.
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
I thought exactly about this possibility, your answer helped me to realize this path
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
The relationship part I managed to overcome the obstacles, what I need at the moment is very simple in theory. I just want to identify a record action in the database and do extra actions similar to the notification feature of the filament. For example, send an email after creating a record.
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
I can understand, but I think I did something different than expected in creating the resources, I generated them as follows. php artisan make:filament-resource Vehicle --generate --simple I noticed that something similar to what you suggested was the 'ManageVehicle' file, which is in the path 'App\Filament\Resources\VehicleResource\Pages'
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
My form builder is done as follows. class VehicleResource extends Resource { public static function form(Form $form): Form { return $form ->schema([ // ........ ]); }
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
One question, can't I use 'protected function afterCreate(): void' when I have my form built in my class using extends Resource? Do I necessarily need to extend CreateRecord?
14 replies
FFilament
Created by josecaubivasconcelosjunior on 6/19/2023 in #❓┊help
Observe form builder save and update actions
Oh!! Thank you very much!! I was literally focusing my attention on the form builder documentation. Forgive me for making you point out something so obvious.
14 replies