Mehmet K.
Mehmet K.
FFilament
Created by Mehmet K. on 5/6/2024 in #❓┊help
Can't we do naming in the cluster?
No description
5 replies
FFilament
Created by Mehmet K. on 5/2/2024 in #❓┊help
Can we add sub-menus under the main menus?
No description
4 replies
FFilament
Created by Mehmet K. on 4/29/2024 in #❓┊help
I cannot fill the forum data, although I mount it, the data with the relationship does not come here
No description
3 replies
FFilament
Created by Mehmet K. on 4/25/2024 in #❓┊help
I cannot upload files with FileUpload
No description
3 replies
FFilament
Created by Mehmet K. on 4/22/2024 in #❓┊help
Can't I give default in TextColumn formatStateUsing?
No description
2 replies
FFilament
Created by Mehmet K. on 4/20/2024 in #❓┊help
How to fix this gap in the table screen?
No description
3 replies
FFilament
Created by Mehmet K. on 4/19/2024 in #❓┊help
I cannot add action button in Notification.
No description
2 replies
FFilament
Created by Mehmet K. on 4/18/2024 in #❓┊help
How do I catch the notification for Notification in comments?
https://filamentphp.com/plugins/parallax-comments I am using this package and I want to add Database notifications when comments are posted https://filamentphp.com/docs/3.x/notifications/database-notifications but I can't catch the notification when this comment is posted. What should I do?
3 replies
FFilament
Created by Mehmet K. on 3/25/2024 in #❓┊help
How do I hide these buttons in the form?
No description
2 replies
FFilament
Created by Mehmet K. on 3/21/2024 in #❓┊help
How to close the navigation menu?
When I click on a menu from the menu, I want the menu on the left side to close, is such a thing possible?
2 replies
FFilament
Created by Mehmet K. on 3/19/2024 in #❓┊help
How do I show a popup according to a certain condition when I enter the panel?
A task is assigned for the logged in user and he needs to confirm it, for example, if Auth()->user()->completed==true, I want a modal to open, how can I do it?
1 replies
FFilament
Created by Mehmet K. on 3/18/2024 in #❓┊help
How can I get the $event->id clicked in the calendar?
I want to upload files according to $event->id, but I can't move forward. https://github.com/saade/filament-fullcalendar#returning-events
protected function headerActions(): array
{
return [
CreateAction::make()
->before(function (CreateAction $action, Task $task ) {
$controlTask = $task
->where('company_id', Auth::user()->company_id)
->whereNull('user_file')
->where('task_end_date', '>', now())->first();
if ($controlTask) {
$action->cancel();
}
})
->model(Task::class)
->form([
FileUpload::make('user_file')
->required()
->label('Kullanıcı Dosya Yükle')->multiple(),
])
->using(function (array $data, string $model): Task {
Task::where('company_id', Auth::user()->company_id)->update(['user_file' => $data['user_file']]);
return $model::create($data);
})
];
}
public function fetchEvents(array $fetchInfo): array
{
$data = Task::query()
->where('created_at', '>=', $fetchInfo['start'])
->where('task_end_date', '<=', $fetchInfo['end'])
->where('company_id', Auth::user()->company_id)
->get()
->map(
fn(Task $event) => EventData::make()
->id($event->id)
->title(__('custom.' . $event->document_type))
->textColor('yellow')
->start($event->created_at)
->end($event->task_end_date)
->url(
url: BoughtProductResource::getUrl(),
)
)->toArray();

return $data;

}
protected function headerActions(): array
{
return [
CreateAction::make()
->before(function (CreateAction $action, Task $task ) {
$controlTask = $task
->where('company_id', Auth::user()->company_id)
->whereNull('user_file')
->where('task_end_date', '>', now())->first();
if ($controlTask) {
$action->cancel();
}
})
->model(Task::class)
->form([
FileUpload::make('user_file')
->required()
->label('Kullanıcı Dosya Yükle')->multiple(),
])
->using(function (array $data, string $model): Task {
Task::where('company_id', Auth::user()->company_id)->update(['user_file' => $data['user_file']]);
return $model::create($data);
})
];
}
public function fetchEvents(array $fetchInfo): array
{
$data = Task::query()
->where('created_at', '>=', $fetchInfo['start'])
->where('task_end_date', '<=', $fetchInfo['end'])
->where('company_id', Auth::user()->company_id)
->get()
->map(
fn(Task $event) => EventData::make()
->id($event->id)
->title(__('custom.' . $event->document_type))
->textColor('yellow')
->start($event->created_at)
->end($event->task_end_date)
->url(
url: BoughtProductResource::getUrl(),
)
)->toArray();

return $data;

}
2 replies
FFilament
Created by Mehmet K. on 3/18/2024 in #❓┊help
How can I create a Modal form in FullCalendar that opens when I click on the event?
No description
1 replies
FFilament
Created by Mehmet K. on 3/11/2024 in #❓┊help
I get Select Table Error in Table builder
No description
6 replies
FFilament
Created by Mehmet K. on 3/11/2024 in #❓┊help
How do I save the data clicked in the action menu to the database?
No description
1 replies
FFilament
Created by Mehmet K. on 2/29/2024 in #❓┊help
How can I pull the data I saved in the Modal Form?
No description
8 replies
FFilament
Created by Mehmet K. on 2/29/2024 in #❓┊help
Can we prevent Wizard from moving off the page?
No description
4 replies
FFilament
Created by Mehmet K. on 2/28/2024 in #❓┊help
If true is selected in the radio button, can I hide or show the input?
For example, if TextInput is selected as true in the radio button, I want it to be shown, if false is selected, I want it to be hidden. I wonder if this is possible?
2 replies
FFilament
Created by Mehmet K. on 2/27/2024 in #❓┊help
How do I add a link next to the menu top bar?
No description
5 replies
FFilament
Created by Mehmet K. on 2/27/2024 in #❓┊help
How can I make basket logic in filament?
I want to sell products and make a basket, how can I make this basket logic?
2 replies