Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Nova Api Laravel Package

opscale-co/nova-api

A Laravel Nova package that adds a customizable REST API layer for your Nova resources, with authentication, filtering, sorting, pagination, and relationship support for exposing Nova-managed data to external apps.

View on GitHub
Deep Wiki
Context7

opscale-co/nova-api provides a streamlined way to expose Laravel Nova resources through API endpoints, bridging Nova’s admin tooling with application-facing APIs. It helps teams reuse Nova resource definitions and keep API behavior consistent without duplicating configuration.

  • Define API-ready endpoints from Nova resources
  • Consistent resource serialization and request handling
  • Integrates with existing Laravel routing and middleware
  • Keeps admin and API logic aligned
  • Lightweight setup for Nova-powered applications
Frequently asked questions about Nova Api
What is opscale-co/nova-api used for?
It is a Laravel package that adds default secured CRUD API endpoints for your Nova resources. It helps expose Nova resources and actions through REST endpoints, with authentication and JSON responses. It is intended for Laravel applications that already use Laravel Nova and want an API layer for their admin resources.
How do I install opscale-co/nova-api with Composer?
Install it with Composer using composer require opscale-co/nova-api. Then follow the package setup steps in the repository README, including any service provider or configuration publishing required. Check the Composer constraints to ensure your Laravel and Nova versions are supported.
Does opscale-co/nova-api support Laravel Nova 4?
The package is built for Laravel Nova, but exact Nova version support depends on its Composer requirements. Check the composer.json and README on the repository for the supported nova and laravel constraints. If you are on Nova 4, verify compatibility before adding it to a production application.
How does authentication work in nova-api?
The package adds secured CRUD API endpoints and supports authentication for the exposed REST routes. You should configure the route middleware and guards according to the package documentation so endpoints are protected in production. Review the published routes or config to confirm which auth middleware is applied.
How do I expose a Nova resource through the API?
You register or reference your Nova resource so the package can generate default CRUD REST endpoints for it. The exact registration method is described in the README, and it typically involves route or config definitions. The endpoints return JSON responses based on your Nova resource setup.
Can I use Nova actions through the API?
Yes, the package is described as exposing Nova resources and actions through REST endpoints. Actions can be made available through API routes, subject to the authentication setup you configure. Check the package docs for how to register actions and which routes are generated.
How do I customize the API routes or endpoints?
Route customization depends on the package's route and configuration publishing options. Look for route registration instructions or a config file in the repository README. You can usually adjust middleware, prefixes, and exposed resources through configuration, but verify the exact options in the package source.
Is nova-api compatible with Laravel Sanctum or Passport?
Because it is a Laravel package with authentication support, it should work with Laravel auth middleware and guards such as Sanctum or Passport. You would apply the appropriate middleware to the package routes. Confirm the recommended setup in the package documentation, since it may provide its own auth defaults.
How can I test nova-api endpoints?
Use Laravel's HTTP testing helpers to call the generated REST endpoints with authenticated users. Write feature tests for CRUD routes and action routes, and assert the JSON response structure. Check the package repository for existing tests or examples you can adapt.
What are alternatives to opscale-co/nova-api?
Alternatives include building custom API controllers and Laravel resources yourself or using another Nova API package. The right choice depends on whether you need default CRUD endpoints, Nova action support, and authentication out of the box. Compare maintenance activity and Laravel and Nova version compatibility before deciding.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource