M
M
mix123452020-12-06 03:05:01
Composer
mix12345, 2020-12-06 03:05:01

How to install a package?

I use the Laravel nova panel, but I can’t install the package https://github.com/den1n/nova-blog

, as I understand it, you need to add

"repositories" to composer.json: [
{
"type": "path",
"url": "./den1n"
}
],

and in the root of the laravel project, create a folder den1n and copy the entire repository there?

and then follow the

Installation
Require package with Composer instructions.

composer require den1n/nova-blog
Publish package resources.

php artisan vendor:publish --provider="Den1n\NovaBlog\ServiceProvider"
This will publish the following resources:

Configuration file config/nova-blog.php
Migration file database/migrations/*_create_blog_tables.php
Translations resources/lang/vendor/nova-blog
Views resources/views/vendor/nova-blog
JavaScript assets resources/js/vendor/nova-blog
CSS assets resources/sass/vendor/nova-blog

please tell me how to install it correctly

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question