2l30926048
2l30926048
FFilament
Created by 2l30926048 on 8/5/2024 in #❓┊help
Unable to locate file in Vite manifest: .../admin/theme.css
Found out why, in AdminPanelProvider I was using the absolute path to the admin theme.css resource. It requires the relative path only!
6 replies
FFilament
Created by 2l30926048 on 12/26/2023 in #❓┊help
Json column casted as array searchable in filament admin panel
Any ideas ?
3 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Finally I found the answer to the problem thanks to @awcodes it was solved here https://github.com/filamentphp/filament/issues/7592#issuecomment-1671997859 Basically somehow the models were extending the wrong class (Pivot instead of Model). Thanks everyone.
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
For those who also want to reproduce the error locally I've made a simple public repo at: https://github.com/aflorea4/filament-missing-required-parameter-issue Setup: composer install php artisan key:generate php artisan migrate --seed php artisan serve Log in with: localhost:8000/admin [email protected] password Create a new EmploymentAnnouncement model from the admin panel.
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
The same to me, also other models like phones, news
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Also, I found that this issue I have on multiple models excepting one ("Page") but I couldn't find out why yet
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Theoretically it should redirect by default to the edit page after creation, right ?
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Alright but then why is this happening ?
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
I'm hoping that you don't have any issues with the MediaLibraryPro package which is licensed...
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Alright, thanks 1. php artisan make:filament-user 2. php artisan tinker $user = User::first(); $user->assignRole('super_admin'); 3. php artisan shield:generate --all 4. Head to /admin/employment-announcements/create 5. Create a new resource using some dummy data
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
In the AppServiceProvider boot() this is what I have: /** * Bootstrap any application services. */ public function boot(): void { Filament::serving(function () { Filament::registerNavigationGroups([ NavigationGroup::make() ->label('Administration') ->icon('heroicon-s-library'), NavigationGroup::make() ->label('Content') ->icon('heroicon-s-pencil'), NavigationGroup::make() ->label('Settings') ->icon('heroicon-s-cog') ->collapsed(), ]); }); \RyanChandler\FilamentNavigation\Filament\Resources\NavigationResource::navigationGroup('Administration'); MediaLibrary::registerMediaInfoInformationUsing(function (array $information, MediaLibraryItem $mediaLibraryItem, MediaItemMeta $mediaItemMeta): array { return array_merge($information, [ 'ID' => $mediaLibraryItem->getKey(), 'Thumb conversion generated' => $mediaLibraryItem->getItem()->hasGeneratedConversion('thumb') ? 'Yes' : 'No', ]); }); MediaLibrary::registerMediaInfoFormFields(fn (array $schema): array => [ ...$schema, SpatieTagsInput::make('tags'), ]); FilamentNavigation::addItemType('Page Link', [ Select::make('page_id') ->searchable() ->options(function () { return Page::pluck('title', 'id'); }) ]); FilamentNavigation::addItemType('Document Link', [ Select::make('document_id') ->searchable() ->options(function () { return Document::pluck('name', 'id'); }) ]); }
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Where should I look ?
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
I guess so, the records are created in the db tho
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Tested and the same..
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
protected $fillable = [ 'user_id', 'date', 'title', 'file_name', ]; yes
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
Yes, it is saved
45 replies
FFilament
Created by 2l30926048 on 8/8/2023 in #❓┊help
Missing required parameter for edit route redirect after creation error
yes.. it looks strange, I have other models which are very similar and those work, only with this one I have the issues..
45 replies