samsasba
samsasba
FFilament
Created by samsasba on 10/22/2023 in #❓┊help
Custom route
Hi everyone, i am stuck with a problem which i want to create a custom route just like the ViewRecord one little change is is that i want it to return json response not View and thanks.
1 replies
FFilament
Created by samsasba on 10/21/2023 in #❓┊help
Javascript module
FilamentAsset::register([
Js::make('print-js', resource_path('js/print-js.js'))->module(),
]);
FilamentAsset::register([
Js::make('print-js', resource_path('js/print-js.js'))->module(),
]);
Uncaught TypeError: Failed to resolve module specifier "print-js". Relative references must start with either "/", "./", or "../".
Uncaught TypeError: Failed to resolve module specifier "print-js". Relative references must start with either "/", "./", or "../".
5 replies
FFilament
Created by samsasba on 10/21/2023 in #❓┊help
Print action
Hi, i want to create a custom action that can use javascript methods e.g. without sending actions to server like x-on:click which i will use to print an element using print-js
13 replies
FFilament
Created by samsasba on 10/14/2023 in #❓┊help
Dynamic field
Hi, i have got Attribute called result which looks like this:
protected function result(): Attribute
{
return Attribute::make(
get: fn () => $this->type === Type::Value
? $this->pivot->result_int
: $this->pivot->result_varchar,
);
}
protected function result(): Attribute
{
return Attribute::make(
get: fn () => $this->type === Type::Value
? $this->pivot->result_int
: $this->pivot->result_varchar,
);
}
Now in filamentphp form i want to have a conditional field; meaning when the type is int i want it to display TextInput and when it's varchar Select, i know this can be done when using a form, but in my case i want it to be in the table with the field TextInputColumn.
2 replies
FFilament
Created by samsasba on 10/12/2023 in #❓┊help
AttachAction title
Hi, i have AttachAction action in a relation manager, and i want it's title attribute to be name which composes from first_name and last_name, spent too much time; no luck. A help would be appreciated.
17 replies
FFilament
Created by samsasba on 10/8/2023 in #❓┊help
ImageEntry preview
Is it possible to press on the image to toggle the previewing modal.
4 replies
FFilament
Created by samsasba on 10/5/2023 in #❓┊help
Multi-panels different image paths
Hi, currently i'm using filamentphp v3 with multi-panels, and i want to store images in a specific directory for each panel e.g. admin => '/images/admin/JASKD23908HR890ADYHA0D12.png' , user => '/images/user/ASDK2309J9023FH23890HF3890.png'
7 replies
FFilament
Created by samsasba on 9/18/2023 in #❓┊help
Badgeable column
I just installed https://filamentphp.com/plugins/awcodes-badgeable-column works perfectly except the badges colors aren't shown, i spent +3 hours trying to compile css but no luck.
11 replies