jlove1672
jlove1672
FFilament
Created by jlove1672 on 9/4/2024 in #❓┊help
How do i prevent an action modal from closing the modal on submit
perfect! 🙌
5 replies
FFilament
Created by jlove1672 on 5/2/2024 in #❓┊help
Do text inputs have a clear input option
Yeah type search did it for me thank you! 🙌
8 replies
FFilament
Created by jlove1672 on 4/18/2024 in #❓┊help
In a custom form column how can i access the index of the current record in the loop
Cheers!
4 replies
FFilament
Created by adnn on 4/8/2024 in #❓┊help
Infolist with pages?
so just link them to view page for your resource which will be info list page
4 replies
FFilament
Created by adnn on 4/8/2024 in #❓┊help
Infolist with pages?
You should be able to customise where you when clicking a table row like this: public function table(Table $table): Table { return $table ->recordUrl( fn (Model $record): string => route('posts.edit', ['record' => $record]), ); }
4 replies
FFilament
Created by maninscotland on 4/8/2024 in #❓┊help
Issue with button color theming on front-end (forms, etc)
You should just be able to use your defined tailwind colors for frontend work - thats what we do We define a set of brand colors inside tailwind.config.js - its separate to our backend which is built with filament-panels
16 replies
FFilament
Created by Rahul on 4/4/2024 in #❓┊help
Video Durations(Hours and Seconds)
Filament has a TimePicker form field
5 replies
FFilament
Created by Rahul on 4/4/2024 in #❓┊help
Video Durations(Hours and Seconds)
You should be able to store video duration with the TIME data_type
5 replies
FFilament
Created by Muxabble on 2/13/2024 in #❓┊help
Error with Builder Field
You can intercept the data before its saved by going into your CreatePages.php and adding this method protected function mutateFormDataBeforeCreate(array $data): array { dd($data) } This will help you see the format of content before its saved and allow you to modify it to suit your underlying db schema
8 replies
FFilament
Created by Muxabble on 2/13/2024 in #❓┊help
Error with Builder Field
What filament form field are you using for content?
8 replies
FFilament
Created by jlove1672 on 1/9/2024 in #❓┊help
Call modal from anywhere on filament admin panel
Thanks for getting back. Ive decided to just stick with my original method of registering my custom livewire modal component via hooks as theres a small bit of func required to happen inside the modal on the php end 👍
7 replies
FFilament
Created by Masea on 1/4/2024 in #❓┊help
Using filament forms outside filament, how can i configure primary colors?
you need to include const colors = require('tailwindcss/colors') at the top of that file to access colors
7 replies
FFilament
Created by Masea on 1/4/2024 in #❓┊help
Using filament forms outside filament, how can i configure primary colors?
You should be able to configure global colors in your tailwind.config.js file and use then throughout your livewire application
7 replies
FFilament
Created by Wim on 1/4/2024 in #❓┊help
Display two sections next to each other
let me know if thats want you needed, if not, try draw what what you mean 👍
6 replies
FFilament
Created by Wim on 1/4/2024 in #❓┊help
Display two sections next to each other
No description
6 replies
FFilament
Created by Wim on 1/4/2024 in #❓┊help
Display two sections next to each other
Hey - i think i achieved what youre trying to do by doing this:
return $form
->schema([
Grid::make(2)
->schema([
Section::make([
TextInput::make('')
->required(),
Grid::make()
->schema([
Toggle::make('')
->reactive(),
Toggle::make('')
->reactive(),
])
])->columnSpan(1),
Section::make([
Select::make('')
->label(' to ')
->searchable()
->options(),
Select::make('')
->label( )
->searchable()
->options(),
])
->visible(fn ($get) => !$get(''))
->columnSpan(1)
]),
]);
return $form
->schema([
Grid::make(2)
->schema([
Section::make([
TextInput::make('')
->required(),
Grid::make()
->schema([
Toggle::make('')
->reactive(),
Toggle::make('')
->reactive(),
])
])->columnSpan(1),
Section::make([
Select::make('')
->label(' to ')
->searchable()
->options(),
Select::make('')
->label( )
->searchable()
->options(),
])
->visible(fn ($get) => !$get(''))
->columnSpan(1)
]),
]);
6 replies
FFilament
Created by Ahmed Ali on 1/4/2024 in #❓┊help
Hi every one i have user has applicant relationships
I hope this helps, let me know if you have any issues with it or if it solves your problem
27 replies
FFilament
Created by Ahmed Ali on 1/4/2024 in #❓┊help
Hi every one i have user has applicant relationships
Ok so what you need to do is simplify your form for creating the applicant All your form needs is:
TextInput::make('name'),
TextInput::make('email'),
TextInput::make('password'),
TextInput::make('name'),
TextInput::make('email'),
TextInput::make('password'),
Then inside your applicant resource you should have a CreateApplicant.php file Inside that file you need to add a function
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['user_id'] = auth()->id();

return $data;
}
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['user_id'] = auth()->id();

return $data;
}
Inside this function ^ you can intercept the data and use it to create a user for the applicant so something like this
protected function mutateFormDataBeforeCreate(array $data): array
{
//create new user manually with the data
$user = User::create(['name' => $data['name']])

$data['user_id'] = user->getKey();

return $data;
}
protected function mutateFormDataBeforeCreate(array $data): array
{
//create new user manually with the data
$user = User::create(['name' => $data['name']])

$data['user_id'] = user->getKey();

return $data;
}
27 replies
FFilament
Created by Ahmed Ali on 1/4/2024 in #❓┊help
Hi every one i have user has applicant relationships
Are your users already created before you create an applicant? Or do you create the user and the applicant at the same time?
27 replies
FFilament
Created by jlove1672 on 5/3/2023 in #❓┊help
How can i modify a table record column before save (on column input)
cant find that function on columns. Im just going to settle for an observer on the model
4 replies