Skip to content

Instantly share code, notes, and snippets.

@richartkeil
Last active October 12, 2018 08:31
Show Gist options
  • Save richartkeil/9d6f2f82371658e18de7e647cf026d53 to your computer and use it in GitHub Desktop.
Save richartkeil/9d6f2f82371658e18de7e647cf026d53 to your computer and use it in GitHub Desktop.
Custom Card in Laravel Nova - Service Provider 2
<?php
// ...
protected function routes()
{
Nova::routes()
->withAuthenticationRoutes()
->withPasswordResetRoutes()
->register();
Route::middleware(['nova'])
// Set this namespace wherever you want to respond
// to requests from your Nova components.
->namespace('App\Nova\Http\Controllers')
->prefix('nova-backend')
->group(base_path('routes/nova.php'));
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment