tomatophp / filament-ecommerce

Build your own ecommerce store with Filament & Splade
MIT License
34 stars 7 forks source link

Call to a member function generateRouteName() on null #3

Closed khmish closed 1 month ago

khmish commented 1 month ago

After I ran this artisan

composer require tomatophp/filament-ecommerce

Error

  Call to a member function generateRouteName() on null

  at vendor\filament\filament\src\Pages\Page.php:124
    120▕
    121▕         $routeName = 'pages.' . static::getRelativeRouteName();
    122▕         $routeName = static::prependClusterRouteBaseName($routeName);
    123▕
  ➜ 124▕         return $panel->generateRouteName($routeName);
    125▕     }
    126▕
    127▕     /**
    128▕      * @return array<string>

  1   vendor\tomatophp\filament-ecommerce\src\FilamentEcommerceServiceProvider.php:87
      Filament\Pages\Page::getRouteName()

  2   vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
      TomatoPHP\FilamentEcommerce\FilamentEcommerceServiceProvider::boot()

here is some info about the project

        "php": "^8.2",
        "laravel/framework": "^11.9",
        "laravel/tinker": "^2.9",
        "tomatophp/filament-ecommerce": "1.0.4"
3x1io commented 1 month ago

I will review it ASAP, and let you know if it's a problem or if you just need to install something.

khmish commented 1 month ago

Trues out that I forget to install filament.