Skip to content

Custom Laravel Package with Nova Resources & Laravel Models [help needed] #6558

Answered by ismaildasci
NowakAdmin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! 👋

You’re on the right track with creating a custom Laravel package and connecting it with Nova. Here’s a structured approach to ensure your models and Nova resources are properly recognized within your custom package:

1. Ensure the Package Service Provider is Registered

First, make sure your package’s service provider is registered. You can confirm this by checking that it’s loaded in your composer.json file (which you’ve done with autoload), and by using the register and boot methods in your service provider.

In src/SomePackageServiceProvider.php, you should have something like this:

namespace NowakAdmin\SomePackage;

use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Nova;

c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NowakAdmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants