© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
pocket.racer

How to do getUrl() but another panel?

So I have a customer panel and after they create their order, i have a code that is like this (in the create() method of the Customer Panel CreateOrder class

# CreateOrder class
namespace App\Filament\Customer\Resources\OrderResource\Pages;

use App\Filament\Resources\OrderResource as AdminOrderResource;
use Filament\Notifications\Notification;

$admins = Admin::get();

        Notification::make()
            ->title('New Order')
            ->success()
            ->actions([
                Action::make('view')
                    ->button()
                    ->url(AdminOrderResource::getUrl('edit', ['record' => $order->id])),
            ])
            ->sendToDatabase($admins, true);
# CreateOrder class
namespace App\Filament\Customer\Resources\OrderResource\Pages;

use App\Filament\Resources\OrderResource as AdminOrderResource;
use Filament\Notifications\Notification;

$admins = Admin::get();

        Notification::make()
            ->title('New Order')
            ->success()
            ->actions([
                Action::make('view')
                    ->button()
                    ->url(AdminOrderResource::getUrl('edit', ['record' => $order->id])),
            ])
            ->sendToDatabase($admins, true);


However i get this error instead when i tried creating the order

Route [filament.customer.resources.orders.edit] not defined.

But clearly I made sure i call the getUrl() method on the OrderResource that is from the Admin panel (even giving it an alias of AdminOrderResource), and not the Customer panel.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to create another panel?!
FilamentFFilament / ❓┊help
3y ago
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
FilamentFFilament / ❓┊help
13mo ago
How to login using Another API in filament panel
FilamentFFilament / ❓┊help
3y ago
Action to redirect from one panel to another
FilamentFFilament / ❓┊help
12mo ago