What happened?
When I run php artisan route:cache command with FolioMarkdown registered in FolioServiceProvider I don't see successful message Routes cached successfully. in console and there is no generated routes-v7.php file in the bootstrap/cache folder. When I comment out FolioMarkdown::register() line, everything is fine.
How to reproduce the bug
Just run php artisan route:cache
Package Version
v1.0.0-beta.1
PHP Version
8.2.0
Laravel Version
10.23.1
Which operating systems does with happen with?
Linux
Notes
I don't know why it's not working, but I saw similar issue with Livewire 3 that was fixed by replacing closures with methods. Maybe it's related somehow.
What happened?
When I run
php artisan route:cachecommand withFolioMarkdownregistered inFolioServiceProviderI don't see successful messageRoutes cached successfully.in console and there is no generatedroutes-v7.phpfile in thebootstrap/cachefolder. When I comment outFolioMarkdown::register()line, everything is fine.How to reproduce the bug
Just run
php artisan route:cachePackage Version
v1.0.0-beta.1
PHP Version
8.2.0
Laravel Version
10.23.1
Which operating systems does with happen with?
Linux
Notes
I don't know why it's not working, but I saw similar issue with Livewire 3 that was fixed by replacing closures with methods. Maybe it's related somehow.