raheel3031
raheel3031
FFilament
Created by raheel3031 on 2/22/2025 in #❓┊help
error but clueless
i am getting this error but i don't know how to debug this
InvalidArgumentException

Unable to locate a class or view for component [input].

at vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:316
312▕ if (Str::startsWith($component, 'mail::')) {
313▕ return $component;
314▕ }
315▕
➜ 316▕ throw new InvalidArgumentException(
317▕ "Unable to locate a class or view for component [{$component}]."
318▕ );
319▕ }
320▕

1 vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:236
Illuminate\View\Compilers\ComponentTagCompiler::componentClass("input")

2 vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:221
Illuminate\View\Compilers\ComponentTagCompiler::componentString("input", ["'Search...'", "'search'", "true", "'o-magnifying-glass'"])
InvalidArgumentException

Unable to locate a class or view for component [input].

at vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:316
312▕ if (Str::startsWith($component, 'mail::')) {
313▕ return $component;
314▕ }
315▕
➜ 316▕ throw new InvalidArgumentException(
317▕ "Unable to locate a class or view for component [{$component}]."
318▕ );
319▕ }
320▕

1 vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:236
Illuminate\View\Compilers\ComponentTagCompiler::componentClass("input")

2 vendor\laravel\framework\src\Illuminate\View\Compilers\ComponentTagCompiler.php:221
Illuminate\View\Compilers\ComponentTagCompiler::componentString("input", ["'Search...'", "'search'", "true", "'o-magnifying-glass'"])
9 replies
FFilament
Created by raheel3031 on 2/17/2025 in #❓┊help
product importer
i am getting these errors. i don't know why this is happening.
Import completed
6 seconds ago
Your product import has completed and 0 rows imported. 10 rows failed to import.
Download information about the failed rows

[2025-02-17 13:23:18] local.INFO: Broadcasting [database-notifications.sent] on channels [private-App.Models.User.1] with payload:
{
"socket": null
}
Import completed
6 seconds ago
Your product import has completed and 0 rows imported. 10 rows failed to import.
Download information about the failed rows

[2025-02-17 13:23:18] local.INFO: Broadcasting [database-notifications.sent] on channels [private-App.Models.User.1] with payload:
{
"socket": null
}
15 replies
FFilament
Created by raheel3031 on 2/10/2025 in #❓┊help
fabricator menu item duplicate
No description
15 replies
FFilament
Created by raheel3031 on 1/28/2025 in #❓┊help
displaying address in filament form
Forms\Components\View::make('same_shipping_notice')
->content(fn (Forms\Get $get) => '
<div class="space-y-1">
<strong>Same as shipping address:</strong>
<div>' . e($get('shipping_address')) . '</div>
<div>' . e($get('shipping_postal_code')) . ' ' . e($get('shipping_city')) . '</div>
<div>' . e($get('shipping_country')) . '</div>
</div>
')
->visible(fn (Forms\Get $get) => $get('use_shipping_address'))
->columnSpanFull(),
Forms\Components\View::make('same_shipping_notice')
->content(fn (Forms\Get $get) => '
<div class="space-y-1">
<strong>Same as shipping address:</strong>
<div>' . e($get('shipping_address')) . '</div>
<div>' . e($get('shipping_postal_code')) . ' ' . e($get('shipping_city')) . '</div>
<div>' . e($get('shipping_country')) . '</div>
</div>
')
->visible(fn (Forms\Get $get) => $get('use_shipping_address'))
->columnSpanFull(),
why is this not working
7 replies
FFilament
Created by raheel3031 on 1/12/2025 in #❓┊help
stripe integration on checkoutpage
i am getting this message when i create a createSetupIntent Undefined method 'createSetupIntent'
public function render()
{
$cart_items = CartManagement::getCartItemsFromCookie();
$grand_total = CartManagement::calculateGrandTotal($cart_items);

// Ensure the user is authenticated and has a Stripe ID
if (auth('customer')->check()) {
$user = auth('customer')->user();
$intent = $user->createSetupIntent(); // Calling the createSetupIntent() method here
}

return view('livewire.pages.checkout-page', compact('cart_items', 'grand_total', 'intent'));
}
public function render()
{
$cart_items = CartManagement::getCartItemsFromCookie();
$grand_total = CartManagement::calculateGrandTotal($cart_items);

// Ensure the user is authenticated and has a Stripe ID
if (auth('customer')->check()) {
$user = auth('customer')->user();
$intent = $user->createSetupIntent(); // Calling the createSetupIntent() method here
}

return view('livewire.pages.checkout-page', compact('cart_items', 'grand_total', 'intent'));
}
i have added the billable trait in the customer model. i have installed cashier but i keep getting this error.
6 replies
FFilament
Created by raheel3031 on 1/8/2025 in #❓┊help
tiptapeditor
i am using tiptapeditor but when i submit something then it doesn't get stored in the database. this is in the resource
TiptapEditor::make('description')
->output(TiptapOutput::Json)
->columnSpanFull(),
TiptapEditor::make('description')
->output(TiptapOutput::Json)
->columnSpanFull(),
6 replies
FFilament
Created by raheel3031 on 1/2/2025 in #❓┊help
Filament stripe
I have a question. In the front-end of my project I want to integrate stripe elements through Javascript. I have a form with livewire and want to integrate stripe elements. In the checkout model i have functions for the customer data collection and a order is being created. How can i execute the collection of customer data, the order creation and the payment which is triggered by Javascript with 1 button? Sorry if the question is unclear. The data is too big to share here.
4 replies
FFilament
Created by raheel3031 on 12/28/2024 in #❓┊help
Undefined array key 1
i am getting this error when trying to clear config, route etc. i don't know how to solve it. Anyone got any ideas?
Undefined array key 1

at vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
83▕ public function removeUrlsOf(Page $page): void
84▕ {
85▕ // First remove the entries from the (ID -> URI) mapping
86▕ $idToUrlsMapping = $this->getIdToUrisMapping();
➜ 87▕ $urls = $idToUrlsMapping[$page->id];
88▕ $idToUrlsMapping[$page->id] = null;
89▕ unset($idToUrlsMapping[$page->id]);
90▕ $this->replaceIdToUriMapping($idToUrlsMapping);
91▕

1 vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}("Undefined array key 1", "C:\xampp\htdocs\nextxlfabricator\vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php")

2 vendor\z3d0x\filament-fabricator\src\Commands\ClearRoutesCacheCommand.php:47
Z3d0X\FilamentFabricator\Services\PageRoutesService::removeUrlsOf(Object(Z3d0X\FilamentFabricator\Models\Page))
Undefined array key 1

at vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
83▕ public function removeUrlsOf(Page $page): void
84▕ {
85▕ // First remove the entries from the (ID -> URI) mapping
86▕ $idToUrlsMapping = $this->getIdToUrisMapping();
➜ 87▕ $urls = $idToUrlsMapping[$page->id];
88▕ $idToUrlsMapping[$page->id] = null;
89▕ unset($idToUrlsMapping[$page->id]);
90▕ $this->replaceIdToUriMapping($idToUrlsMapping);
91▕

1 vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php:87
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}("Undefined array key 1", "C:\xampp\htdocs\nextxlfabricator\vendor\z3d0x\filament-fabricator\src\Services\PageRoutesService.php")

2 vendor\z3d0x\filament-fabricator\src\Commands\ClearRoutesCacheCommand.php:47
Z3d0X\FilamentFabricator\Services\PageRoutesService::removeUrlsOf(Object(Z3d0X\FilamentFabricator\Models\Page))
22 replies
FFilament
Created by raheel3031 on 11/5/2024 in #❓┊help
fabricator setting homepage
i cannot find in the documentation how to setup different pages. Anyone has experience with this?
5 replies
FFilament
Created by raheel3031 on 10/26/2024 in #❓┊help
path filament plugin in navigation menu
what are the paths of filament plugins? i want to list them in the adminserviceprovider,
17 replies
FFilament
Created by raheel3031 on 10/26/2024 in #❓┊help
tiptapeditor errors
i have installed tiptapeditor but it is causing problems Problem 1 - Root composer.json requires spatie/shiki-php ^1.3.0, found spatie/shiki-php[1.3.0] but the package is fixed to 2.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require z3d0x/filament-fabricator:*" to figure out if any version is installable, or "composer require z3d0x/filament-fabricator:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
3 replies
FFilament
Created by raheel3031 on 10/24/2024 in #❓┊help
curator filament plugin view
No description
86 replies
FFilament
Created by raheel3031 on 10/11/2024 in #❓┊help
laravel breeze logout
I have laravel breeze installed. I created the guard customer. But when I logout as a customer the admin also logs out. How can I prevent this?
9 replies
FFilament
Created by raheel3031 on 9/22/2024 in #❓┊help
filament plugin menu-builder
Has anyone installed this plugin? I have installed it but when I go to the edit page of the menu builder. I get an error that the route (categories.show)is not defined. Anyone has an idea?
18 replies
FFilament
Created by raheel3031 on 9/19/2024 in #❓┊help
foreach loop not working
can someone help me with this loop. it is not working. I am using livewire 3
<!-- Filter section, show/hide based on section state. -->
<div class="pt-6" id="filter-section-1">
<div class="space-y-4">
@foreach ($categories as $category)
<div class="space-y-4" wire:key="{{ $category->id }}">
<div class="flex items-center">
<input id="filter-category-2" name="category[]" value="{{ $category->id }}" type="checkbox" wire:model.live="selected_categories" id="{{ $category->slug }}" class="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<label for="{{ $category->slug }}" class="ml-3 text-sm text-gray-600">{{ $category->name }}</label>
</div>
</div>
@endforeach
</div>
</div>
</div>
<!-- Filter section, show/hide based on section state. -->
<div class="pt-6" id="filter-section-1">
<div class="space-y-4">
@foreach ($categories as $category)
<div class="space-y-4" wire:key="{{ $category->id }}">
<div class="flex items-center">
<input id="filter-category-2" name="category[]" value="{{ $category->id }}" type="checkbox" wire:model.live="selected_categories" id="{{ $category->slug }}" class="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<label for="{{ $category->slug }}" class="ml-3 text-sm text-gray-600">{{ $category->name }}</label>
</div>
</div>
@endforeach
</div>
</div>
</div>
4 replies
FFilament
Created by raheel3031 on 9/14/2024 in #❓┊help
These credentials do not match our records.
i have copied a project from a repo. after I created a new filament user i get this message. These credentials do not match our records. how do i start with solving this?
10 replies
FFilament
Created by raheel3031 on 9/13/2024 in #❓┊help
slug is not generated within createOptionForm
No description
7 replies
FFilament
Created by raheel3031 on 9/13/2024 in #❓┊help
error: Array to string conversion
i am getting the error 'Array to string conversion' in this code:
Forms\Components\FileUpload::make('image')
->columnSpan('full')
->image()
->imageEditor()
->panelLayout('grid')
->multiple()
->directory('brands')
->maxFiles(5)
->reorderable()
->preserveFilenames(),
Forms\Components\FileUpload::make('image')
->columnSpan('full')
->image()
->imageEditor()
->panelLayout('grid')
->multiple()
->directory('brands')
->maxFiles(5)
->reorderable()
->preserveFilenames(),
how do i fix this???
10 replies
FFilament
Created by raheel3031 on 9/12/2024 in #❓┊help
styling image section in filament form builder
No description
11 replies
FFilament
Created by raheel3031 on 9/11/2024 in #❓┊help
Livewire only supports one HTML element per component. Multiple root elements detected for component
Error message I get: Livewire only supports one HTML element per component. Multiple root elements detected for component: [auth.forgot-password-page]
<!-- Form Group -->
<div>
<div class="flex justify-between items-center">
<label for="password" class="block text-sm mb-2 dark:text-white">Password</label>
<a wire:navigate class="text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="/forgot-password">Forgot password?</a>
</div>
<div class="relative">
<input type="password" id="password" name="password" class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:focus:ring-gray-600" required aria-describedby="password-error">
<div class="hidden absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3">
<svg class="h-5 w-5 text-red-500" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" />
</svg>
</div>
</div>
<p class="hidden text-xs text-red-600 mt-2" id="password-error">8+ characters required</p>
</div>
<!-- End Form Group -->
<!-- Form Group -->
<div>
<div class="flex justify-between items-center">
<label for="password" class="block text-sm mb-2 dark:text-white">Password</label>
<a wire:navigate class="text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="/forgot-password">Forgot password?</a>
</div>
<div class="relative">
<input type="password" id="password" name="password" class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:focus:ring-gray-600" required aria-describedby="password-error">
<div class="hidden absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3">
<svg class="h-5 w-5 text-red-500" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" />
</svg>
</div>
</div>
<p class="hidden text-xs text-red-600 mt-2" id="password-error">8+ characters required</p>
</div>
<!-- End Form Group -->
16 replies