app->booted(function () { $this->routes(); }); Nova::serving(function (ServingNova $event) { Nova::script('start', __DIR__.'/../dist/js/card.js'); Nova::style('start', __DIR__.'/../dist/css/card.css'); }); } /** * Register the card's routes. * * @return void */ protected function routes() { if ($this->app->routesAreCached()) { return; } Route::middleware(['nova']) ->prefix('nova-vendor/start') ->group(__DIR__.'/../routes/api.php'); } /** * Register any application services. * * @return void */ public function register() { // } }