Skip to content

Instantly share code, notes, and snippets.

@raakesh
Created August 23, 2018 15:42
Show Gist options
  • Save raakesh/26725f6298c53a54fdb4857a37a3e510 to your computer and use it in GitHub Desktop.
Save raakesh/26725f6298c53a54fdb4857a37a3e510 to your computer and use it in GitHub Desktop.
composer json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
"laravel/nova": "*"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": {
"laravel/nova": {
"type": "path",
"url": "./nova"
}
}
}
@sfinktah
Copy link

sfinktah commented Oct 15, 2021

FWIW, mine was failing because I unzipped the folder using Ubuntu (as you do), from ./nova/ and it put everything in a subfolder laravel-nova-bd32015c9dce9060fe327f09e96abbe729900648.

It's also worth noting that the supplied body of the JSON in the instructions are different to what is produced by the composer command which is different again to what the correct contents should be.

Pull your finger out guys, frustrating customers who have actually decided to pay you isn't smart.

"repositories": [
    {
        "type": "path",
        "url": "./nova"
    }
],

is just wrong (see: https://nova.laravel.com/docs/3.0/installation.html#installing-nova)

composer config repositories.nova '{"type": "path", "url": "./nova"}' --file composer.json

is probably also wrong, (nova != laravel/nova).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment