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
NNuxt
Created by Neamix on 6/30/2024 in #❓・help
Get api domain in nitro server file
Greeting i created server route that go to api and check the phone if it exist before or not here it's
export default defineEventHandler(async (event) => {
let config = useRuntimeConfig();
let domain = config.public.apiURL;
let route = domain+'/api/user/phone/count';
const body = await readBody(event);
return await $fetch(route, {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: 'post',
body: {
phone: body.phone,
countryCode: body.countryCode
}
})
})
export default defineEventHandler(async (event) => {
let config = useRuntimeConfig();
let domain = config.public.apiURL;
let route = domain+'/api/user/phone/count';
const body = await readBody(event);
return await $fetch(route, {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: 'post',
body: {
phone: body.phone,
countryCode: body.countryCode
}
})
})
and here it my env file
apiURL=https://app.rifq.me
apiURL=https://app.rifq.me
every thing is cool on local but on production i got File not found error (Note: api route is same on local and prod)
3 replies
NNuxt
Created by Neamix on 6/17/2024 in #❓・help
Create .env file
How can i create .env file i read the docs and according to it .env should be exist in nuxt installation but i cant find it and i tried to use this command
npx nuxi dev --dotenv .env.local

npx nuxi dev --dotenv .env.local

and it open dev server not create a new .env file
5 replies
NNuxt
Created by Neamix on 6/3/2024 in #❓・help
Deploy Nuxt 3 app with forge
How can i deploy nuxt 3 app using forge i tried to find any tutorial but i didnt find any
1 replies
NNuxt
Created by Neamix on 5/30/2024 in #❓・help
Nuxt server api get validation error
Hello, i am using Laravel as a backend and Nuxt 3 as front and i am sending requests from front to back using server api so how can i catch validation error that Laravel send it back i tried to catch it but Nuxt return to me the error not the missing validations
1 replies
NNuxt
Created by Neamix on 5/28/2024 in #❓・help
Send otp from firebase
Hello, I want to send OTPs from a Nuxt 3 app using Firebase. I tried to find plugins or documentation to help integrate Firebase Phone Authentication, but I couldn't find any. If anyone can share a method with me, I would be thankful.
1 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
NNuxt
Created by Neamix on 5/18/2024 in #❓・help
Error page ui doesnt changed
Hello, So i tried to change the ui of the error page by adding error.vue in the root but the ui did not change
2 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