You can install this package with Composer to any application that uses Laravel Nova:
composer require wilburpowery/routes-cached
Next, you must register the card with Nova. This is typically done in the cards method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php
// ...
public function cards()
{
return [
// ...
new \Wilburpowery\RoutesCached\RoutesCached,
];
}
TODO:
- Show if the cached routes are outdated
- Click a button to cache your routes