Connor
Connor
FFilament
Created by Connor on 11/28/2024 in #❓┊help
Resource pagination opens modal after upgrading
Just been doing some general maintenance to a project using a lot of filament panels and I'm having a weird issue now where when I click any of the pagination for a resource it will trigger an empty modal to appear. This is just a black modal background with no actual modal inside, it goes away if I hit refresh. I am trying to narrow down what is conflicting causing this weird issue, but really unsure how to debug this. All I have really changed to the project was upgrading to filament v3.2 from 3.0 Any ideas appreciated
5 replies
FFilament
Created by Connor on 7/9/2024 in #❓┊help
Unable to find component
I have a package where I am attempting to implement a custom page in filament
<?php

namespace CNRP\InstagramFeed\Filament\Pages;

use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;

class InstagramManager extends Page
{

protected static ?string $navigationIcon = 'heroicon-o-camera';
protected static ?string $navigationLabel = 'Instagram Feed';
protected static ?string $title = 'Manage Instagram Feed';
protected static ?string $slug = 'instagram-feed';
protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';

public function mount(): void
{
}

protected function getHeaderActions(): array
{
return [
Action::make('refreshFeed')
->label('Refresh Feed')
->action('refreshFeed'),
];
}

public function refreshFeed(): void
{
// do something here
}

}
<?php

namespace CNRP\InstagramFeed\Filament\Pages;

use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;

class InstagramManager extends Page
{

protected static ?string $navigationIcon = 'heroicon-o-camera';
protected static ?string $navigationLabel = 'Instagram Feed';
protected static ?string $title = 'Manage Instagram Feed';
protected static ?string $slug = 'instagram-feed';
protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';

public function mount(): void
{
}

protected function getHeaderActions(): array
{
return [
Action::make('refreshFeed')
->label('Refresh Feed')
->action('refreshFeed'),
];
}

public function refreshFeed(): void
{
// do something here
}

}
The page loads correctly, I see the button for refreshing feed, however clicking it gives me the error
Unable to find component: [c-n-r-p.instagram-feed.filament.pages.instagram-manager]
Unable to find component: [c-n-r-p.instagram-feed.filament.pages.instagram-manager]
I have the page registered in the boot of my package.
Filament::registerPages([
InstagramManager::class,
]);
Filament::registerPages([
InstagramManager::class,
]);
I cannot get any buttons/ actions to work, maybe due to how I'm adding the page as part of a package? Not sure where to go from here so any help would be appreciated.
12 replies
FFilament
Created by Connor on 11/22/2023 in #❓┊help
Unable to delete fileupload image
No description
4 replies
FFilament
Created by Connor on 10/24/2023 in #❓┊help
Select::isOptionDisabled(): Argument #2 ($label) must be of type string
I'm getting the following error when trying to create or edit a EmailResource
Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called in /home/forge/removalswirral.com/storage/framework/views/261a1cb3791d1db28c7c94aecd082ed5.php on line 86
Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called in /home/forge/removalswirral.com/storage/framework/views/261a1cb3791d1db28c7c94aecd082ed5.php on line 86
This is only happening on my production server, not locally. Not quite sure how to debug it as i believe its referencing a blade generated template?
4 replies
FFilament
Created by Connor on 10/23/2023 in #❓┊help
RichEditor showing "undefined" in view mode.
No description
12 replies
FFilament
Created by Connor on 10/19/2023 in #❓┊help
Go to record on "view" in Relationship managed resource.
So I have a "Leads" resource and I would like when in the relationship manager for the related "Emails" Resource, the "view" record would take me to the page for that record, instead of popping it out over my lead. Not quite sure how to achieve this specifically, I just want it to mimic what It would do if I were clicking it in the Email table not the relationship manager. Any help on this would be greatly appreciated.
5 replies
FFilament
Created by Connor on 10/19/2023 in #❓┊help
Create New Resource With Defaults?
No description
9 replies
FFilament
Created by Connor on 10/17/2023 in #❓┊help
Preview HTML from first wizard step?
No description
2 replies
FFilament
Created by Connor on 10/9/2023 in #❓┊help
Relation Manager Not Showing related items
No description
6 replies
FFilament
Created by Connor on 10/9/2023 in #❓┊help
ResourceManager not using new field names. (QueryException)
I've created a CheckoutItemsRelationManager for my CheckoutSessionResource, when i view the panel it gives me the following error..
Illuminate
 \ 
Database
 \ 
QueryException
PHP 8.2.5
10.26.2
SQLSTATE[HY000]: General error: 1 no such column: stripe_checkout_items.checkout_session_id
SELECT
count(*) AS aggregate
FROM
"stripe_checkout_items"
WHERE
"stripe_checkout_items"."checkout_session_id" = 3
AND "stripe_checkout_items"."checkout_session_id" IS NOT NULL
Illuminate
 \ 
Database
 \ 
QueryException
PHP 8.2.5
10.26.2
SQLSTATE[HY000]: General error: 1 no such column: stripe_checkout_items.checkout_session_id
SELECT
count(*) AS aggregate
FROM
"stripe_checkout_items"
WHERE
"stripe_checkout_items"."checkout_session_id" = 3
AND "stripe_checkout_items"."checkout_session_id" IS NOT NULL
I've created a CheckoutItemsRelationManager for my CheckoutSessionResource, when i view the panel it gives me the above error.. The issue is I've changed checkout_session_id to stripe_checkout_id, but Filament is still trying to find it with its old variable name? any help would be appreciated. I've updated the CheckoutItems.php reference to this variable & the migration for it. As well as clearing cache,config etc.
7 replies
FFilament
Created by Connor on 10/8/2023 in #❓┊help
Running something when save changes is clicked.
So I have a page for Products, where a user can edit a products information. I want to be able to pass that info back to stripe to update the product externally so I'd like it to run this process when the Edit product form saves but not quite sure how or where i inject this code. Appreciate the help!
9 replies
FFilament
Created by Connor on 8/31/2023 in #❓┊help
How to add a sum of related fields in Form/Components/section
No description
7 replies
FFilament
Created by Connor on 8/30/2023 in #❓┊help
hasMany relationship in form?
No description
7 replies