tomc
tomc
Explore posts from servers
FFilament
Created by tomc on 4/8/2024 in #❓┊help
Curator Image Not Found (Production)
No description
8 replies
FFilament
Created by tomc on 4/8/2024 in #❓┊help
Curator Image Not Found (Production)
yes I did run the storage:link command and it is working
8 replies
FFilament
Created by tomc on 4/8/2024 in #❓┊help
Curator Image Not Found (Production)
but in my local the image shows fine
8 replies
FFilament
Created by tomc on 4/8/2024 in #❓┊help
Curator Image Not Found (Production)
Hi @Leandro Ferreira this is what I get in my console "GET https://api.littdigitalacademy.org/storage/media/7081713f-d5c1-4ebc-abf4-d550e5cb98c8.png 404 (Not Found)"
8 replies
FFilament
Created by Will 🇬🇹 on 4/8/2024 in #❓┊help
How to get team_id when creating new record from Relation Manager
you can use the "hidden" component and pass the "team_id" (in your ConversionsRelationManager ) that worked for me, below is my "PriceRelationManager.php" for my "CourseResource";
public function form(Form $form): Form
{
return $form
->schema([
Section::make() ->label('Regular Price')
->schema([
Hidden::make('course_id'),
TextInput::make('amount')
->numeric(),
Select::make('currency')
->options([
'GHS' => 'GH₵',
'EUR' => 'EUR',
'USD' => 'USD',
]),
Textarea::make('description'),
Toggle::make('active'),
]),
]);
}
public function form(Form $form): Form
{
return $form
->schema([
Section::make() ->label('Regular Price')
->schema([
Hidden::make('course_id'),
TextInput::make('amount')
->numeric(),
Select::make('currency')
->options([
'GHS' => 'GH₵',
'EUR' => 'EUR',
'USD' => 'USD',
]),
Textarea::make('description'),
Toggle::make('active'),
]),
]);
}
Do make sure to call your relations in the getRelations function within your MainResource, just my thoughts
5 replies
FFilament
Created by tomc on 3/12/2024 in #❓┊help
How I create images urls with "filament spatie media library" ?
I think it might be from my panel then, something might have been broken
12 replies
FFilament
Created by tomc on 3/12/2024 in #❓┊help
How I create images urls with "filament spatie media library" ?
yeah I did However I get this error
Error

Call to undefined method Awcodes\Curator\CuratorPlugin::navigationCountBadge()

at app\Providers\Filament\AdminPanelProvider.php:80
76▕ ->pluralLabel('Media')
77▕ ->navigationIcon('heroicon-o-photo')
78▕ ->navigationGroup('Content')
79▕ ->navigationSort(3)
➜ 80▕ ->navigationCountBadge()
81▕ ->registerNavigation(false)
82▕ ->resource(\App\Filament\Resources\CustomMediaResource::class),
83▕ FilamentSpatieLaravelHealthPlugin::make()
84▕ ])

1 vendor\filament\filament\src\PanelProvider.php:15
App\Providers\Filament\AdminPanelProvider::panel(Object(Filament\Panel))

2 vendor\laravel\framework\src\Illuminate\Collections\helpers.php:224
Filament\PanelProvider::Filament\{closure}()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Error

Call to undefined method Awcodes\Curator\CuratorPlugin::navigationCountBadge()

at app\Providers\Filament\AdminPanelProvider.php:80
76▕ ->pluralLabel('Media')
77▕ ->navigationIcon('heroicon-o-photo')
78▕ ->navigationGroup('Content')
79▕ ->navigationSort(3)
➜ 80▕ ->navigationCountBadge()
81▕ ->registerNavigation(false)
82▕ ->resource(\App\Filament\Resources\CustomMediaResource::class),
83▕ FilamentSpatieLaravelHealthPlugin::make()
84▕ ])

1 vendor\filament\filament\src\PanelProvider.php:15
App\Providers\Filament\AdminPanelProvider::panel(Object(Filament\Panel))

2 vendor\laravel\framework\src\Illuminate\Collections\helpers.php:224
Filament\PanelProvider::Filament\{closure}()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
the
->resource(\App\Filament\Resources\CustomMediaResource::class),
->resource(\App\Filament\Resources\CustomMediaResource::class),
is also giving same error:
Undefined type 'App\Filament\Resources\CustomMediaResource'.intelephense(P1009)
Undefined type 'App\Filament\Resources\CustomMediaResource'.intelephense(P1009)
12 replies
FFilament
Created by tomc on 3/12/2024 in #❓┊help
How I create images urls with "filament spatie media library" ?
yes, I took note of that
12 replies
FFilament
Created by tomc on 3/12/2024 in #❓┊help
How I create images urls with "filament spatie media library" ?
thanks @awcodes however I switched to curator, but I don't see the media resource and also I noticed that the migration has changed to a curator, What got me interested was the factthat curator automatically generates urls/file_path upon image upload. Is there a way I can mimic that behaviour?
12 replies