Kuldeep
Kuldeep
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
You can try from your end as well. Just an update is making a separate enum file with constant to define status active = 1, inactive = 0
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
Noop, No any changes.
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
Laravel: v11.3.1 PHP: v8.2.21 Filament: v3.2.108
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
Yeah, same thing also I'm checking that because in the all examples its working properly.
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
filament v3
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
Yes, I've done it already
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
No description
21 replies
FFilament
Created by Kuldeep on 9/5/2024 in #❓┊help
How can I create a ToggleColumn to change status from the list page
Yes, this is working but the major issue is that once we change status from active -> inactive. Into database its updating but to the listing page after refreshing it'll display active instead of inactive.
21 replies
FFilament
Created by Kuldeep on 12/14/2023 in #❓┊help
403 forbidden error
Sorry for tag! Let me check once.
12 replies
FFilament
Created by Kuldeep on 12/14/2023 in #❓┊help
403 forbidden error
@Dennis Koch @toeknee Any solution for this?
12 replies
FFilament
Created by Kuldeep on 12/14/2023 in #❓┊help
403 forbidden error
I have this type of code and tried it with the filament resource custom page. But it'll go to 403 whenever I click on the "Set Status" button. I've checked for permission and it's already given.
<?php

namespace App\Filament\Pages;

use App\Filament\Resources\JobsResource;
use Filament\Forms\Components\Textarea;
use Filament\Pages\Actions\ViewAction;
use Filament\Pages\Page;
use Filament\Pages\Actions;

class JobFiles extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.job-files';

protected function getActions(): array
{
return [
ViewAction::make('view')
->label('Go to Job Details')
->url('Link'),
Actions\Action::make('set_status')
->label('Set Status')
->modalWidth('sm')
->modalHeading(__('Set Status'))
->modalButton(__('SET STATUS'))
->form([
Textarea::make('status_note')
->label(__('Status Note'))
->rows(3),
])
->action(function (array $data) use (): void {

}),
];
}

protected static function shouldRegisterNavigation(): bool
{
return false;
}
}
<?php

namespace App\Filament\Pages;

use App\Filament\Resources\JobsResource;
use Filament\Forms\Components\Textarea;
use Filament\Pages\Actions\ViewAction;
use Filament\Pages\Page;
use Filament\Pages\Actions;

class JobFiles extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.job-files';

protected function getActions(): array
{
return [
ViewAction::make('view')
->label('Go to Job Details')
->url('Link'),
Actions\Action::make('set_status')
->label('Set Status')
->modalWidth('sm')
->modalHeading(__('Set Status'))
->modalButton(__('SET STATUS'))
->form([
Textarea::make('status_note')
->label(__('Status Note'))
->rows(3),
])
->action(function (array $data) use (): void {

}),
];
}

protected static function shouldRegisterNavigation(): bool
{
return false;
}
}
12 replies
FFilament
Created by Kuldeep on 10/11/2023 in #❓┊help
Is there a way to get the value of the filters through custom and use them in the custom query?
Thank you @Dennis Koch It's done. 👍
7 replies
FFilament
Created by Kuldeep on 10/11/2023 in #❓┊help
Is there a way to get the value of the filters through custom and use them in the custom query?
How we can use this into the method getTableContent()?
7 replies
FFilament
Created by Kuldeep on 7/13/2023 in #❓┊help
Error: mountTableAction
Any idea why this is happening?
8 replies
FFilament
Created by Kuldeep on 7/13/2023 in #❓┊help
Error: mountTableAction
I've resolved this issue with the two separate components. 1 - Listing component 2 - Create/Update/Delete component Now, facing an issue is that while create/update/delete listing refresh is not working properly. Data is updated but it'll reflect once I'll try with create/edit/delete action 2nd time
8 replies
FFilament
Created by Kuldeep on 7/13/2023 in #❓┊help
Error: mountTableAction
Yes, I need a form in the page.
8 replies
FFilament
Created by Kuldeep on 7/13/2023 in #❓┊help
Error: mountTableAction
For Ex. 1 - ProductResource that is having multiple types (Product data, images, attributes, etc.) of data with tab structure. 2 - ViewProduct resource has tabs and all the tabs are designed through the livewire component in the listing and display formats.
8 replies
FFilament
Created by Kuldeep on 7/13/2023 in #❓┊help
Error: mountTableAction
On clicking both icons: edit, delete I'm getting error like this: https://flareapp.io/share/yPaAO9GP I wanted to call a listener method: add_update_modal_show, delete_modal_show for edit and delete process.
8 replies
FFilament
Created by Kuldeep on 6/14/2023 in #❓┊help
File upload not working with 2+ files
I've checked with that process. The issue is regarding the method: afterStateUpdated(). It'll run when the first image will be uploaded and after that rest of the image upload process will not work. So, need to use another method which perform save action after all images uploaded successful.
7 replies
FFilament
Created by Kuldeep on 6/14/2023 in #❓┊help
File upload not working with 2+ files
A custom component is for the display purposes.
7 replies