Undefined variable $checkout in Filament v3
Closed this issue · 1 comments
devhoussam1998 commented
Lemon Squeezy for Laravel Version
1.6.2
Laravel Version
11.0
PHP Version
8.2
Description
Undefined variable $checkout
in Filament v3 Page
Steps To Reproduce
TeamPanelProvider.php
<?php
namespace App\Providers\Filament;
// ...
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('team')
->path('team')
->routes(function () {
Route::get('/{tenant}/dashboard', function ($tenant) {
$checkout = $user->checkout('481849');
return view('filament.team.pages.dashboard', ['checkout' => $checkout]);
});
});
}
}
Dashboard.php
<?php
namespace App\Filament\App\Pages;
use Filament\Pages\Page;
class Dashboard extends Page
{
// ...
}
dashboard.blade.php
<x-filament-panels::page>
@if(isset($checkout))
<x-lemon-button :href="$checkout" class="px-8 py-4">
Buy Product
</x-lemon-button>
@endif
</x-filament-panels::page>
driesvints commented
I think this isn't the right place for this issue? We don't have any affiliation with Filament