larakit/laravel-larakit-spa
Laravel package to build SPA-style apps in a Laravel project, providing helpers and integrations for single-page navigation and front-end bootstrapping within the Larakit ecosystem.
config:cache, route:cache) if not properly managed.config:cache and route:cache work as expected with this package?config/app.php to leverage the package’s deferred registration syntax:
'providers' => [
// Non-deferred providers...
LaravelLarakit\SPA\SPAServiceProvider::class, // Enable the package
],
'aliases' => [
// Deferred aliases...
],
spa.php (if provided by the package) to define deferred groups.laravel/framework (core services).spatie/laravel-package-tools (if used for package development).composer require larakit/laravel-larakit-spa
AppServiceProvider or SPAServiceProvider to register deferred services.config/app.php.config:cache and route:cache are rebuilt after changes to deferred providers.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Deferred provider fails to load | SPA features break silently | Implement fallback providers or clear errors. |
| Circular dependencies in deferred providers | Boot failure | Refactor providers to avoid circular dependencies. |
| Asset pipeline breaks (Mix/Vite) | Frontend assets not compiled | Test asset compilation with deferred services. |
| Caching conflicts | Config/route cache corruption | Clear caches after provider changes. |
| PHP version incompatibility | Package fails to load | Pin PHP version in composer.json. |
config/app.php.How can I help you explore Laravel packages today?