Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

midwestdev's avatar

Method router does not exist.

New install run composer update

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

BadMethodCallException

Method router does not exist.

at C:\Users\Jeremiah\Desktop\projects\valet\schedule\vendor\laravel\nova\src\Nova.php:1002 998▕ */ 999▕ public static function __callStatic($method, $parameters) 1000▕ { 1001▕ if (! property_exists(get_called_class(), $method)) { ➜ 1002▕ throw new BadMethodCallException("Method {$method} does not exist."); 1003▕ } 1004▕ 1005▕ return static::${$method}; 1006▕ }

1 C:\Users\Jeremiah\Desktop\projects\valet\schedule\vendor\tightenco\nova-stripe\src\ToolServiceProvider.php:40 Laravel\Nova\Nova::__callStatic("router")

2 C:\Users\Jeremiah\Desktop\projects\valet\schedule\vendor\tightenco\nova-stripe\src\ToolServiceProvider.php:21 Tighten\NovaStripe\ToolServiceProvider::routes() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

0 likes
3 replies
midwestdev's avatar

Was using an older 3. 3 version of laravel/nova upgrade to a 4.0 branch and it worked just fine.

Yizen's avatar

Hi, here is the solution for people experiencing the issue :

  • it appears on Nova 3 installation
  • it is related to nova-stripe package

To correct it, just run the following command : composer require tightenco/nova-stripe:v1.0.0

4 likes

Please or to participate in this conversation.