Neamix
Neamix
Explore posts from servers
FFilament
Created by Neamix on 7/1/2024 in #❓┊help
Google analytic installation
Hi Guys, I need to integrate with google analytic so i used that package "https://filamentphp.com/plugins/bezhansalleh-google-analytics" but i am keep getting that error
Call to undefined function BezhanSalleh\FilamentGoogleAnalytics\gmp_sign()
Call to undefined function BezhanSalleh\FilamentGoogleAnalytics\gmp_sign()
do anyone know how to solve that issue
3 replies
FFilament
Created by Neamix on 7/1/2024 in #❓┊help
Class "Filament\View\PanelsRenderHook" not found
Hello, I am getting that error each time i try to install any package
Class "Filament\View\PanelsRenderHook" not found
Class "Filament\View\PanelsRenderHook" not found
4 replies
FFilament
Created by Neamix on 5/26/2024 in #❓┊help
Filament guard
Hello, i have two guard admin and web i need to run filament on admin guard
4 replies
FFilament
Created by Neamix on 5/14/2024 in #❓┊help
Search my mutators
Hello,i have 2 models User and Pet Each pet belongs to a user and each user have firstname and surname so in table pet i displayed user full name using mutator so i want to know if there is any method to allow user to search by mutator
5 replies
FFilament
Created by Neamix on 5/12/2024 in #❓┊help
Filament Cant find has uploading message
I tried to added file upload ti my form but i keeping getting that error
PHP Fatal error: Trait "Filament\Forms\Components\Concerns\HasUploadingMessage" not found in D:\Projects\Refk Project\Refk api\vendor\joshembling\image-optimizer\src\Components\BaseFileUpload.php on line 22.
PHP Fatal error: Trait "Filament\Forms\Components\Concerns\HasUploadingMessage" not found in D:\Projects\Refk Project\Refk api\vendor\joshembling\image-optimizer\src\Components\BaseFileUpload.php on line 22.
here us my form code
->schema([
Section::make('Coupon details')
->description('Provide information about the coupon')
->collapsible()
->schema([
Forms\Components\TextInput::make('code')
->required()
->maxLength(255)
->columnSpan(1),
Forms\Components\TextInput::make('discount')
->required()
->maxLength(255),
Forms\Components\Toggle::make('used')
->required()
->columnSpan(1),
Select::make('user_id')
->columnSpan(1)
->relationship(name: 'user')
->getOptionLabelFromRecordUsing(fn (User $record) => "#{$record->id} {$record->firstname} {$record->surname}")
->preload()
->searchable()
->required()
->optionsLimit(20),
FileUpload::make('avatar')
])->columns(2),
]);
->schema([
Section::make('Coupon details')
->description('Provide information about the coupon')
->collapsible()
->schema([
Forms\Components\TextInput::make('code')
->required()
->maxLength(255)
->columnSpan(1),
Forms\Components\TextInput::make('discount')
->required()
->maxLength(255),
Forms\Components\Toggle::make('used')
->required()
->columnSpan(1),
Select::make('user_id')
->columnSpan(1)
->relationship(name: 'user')
->getOptionLabelFromRecordUsing(fn (User $record) => "#{$record->id} {$record->firstname} {$record->surname}")
->preload()
->searchable()
->required()
->optionsLimit(20),
FileUpload::make('avatar')
])->columns(2),
]);
8 replies
FFilament
Created by Neamix on 4/22/2024 in #❓┊help
Add relation in select menu
Hey folks, i have 2 models coupons and users and each coupons belongsTo one user and each user have firstname and surname so i want to create a select menu contain users firstname and surname i tried to use this
Select::make('user_id')
->relationship(name: 'user', titleAttribute: function ($record) {
dd($record);
})
->searchable()
->optionsLimit(20)
Select::make('user_id')
->relationship(name: 'user', titleAttribute: function ($record) {
dd($record);
})
->searchable()
->optionsLimit(20)
but it keep return null in create and return coupon record not user in edit
7 replies
FFilament
Created by Neamix on 4/20/2024 in #❓┊help
Map
Does Filament support any kind of maps
3 replies
FFilament
Created by Neamix on 4/19/2024 in #❓┊help
No password inserted
Hey there, So i wanted to create my adminpanal for my application using Filament but users table already in use so i changed the auth table of admins for modal Admin till now every thing work fine but when i use this command to create new admin "php artisan make:filament-user" and entered email and name and password all data entered to admin table except password set to null
6 replies