Skip to content

Instantly share code, notes, and snippets.

@calebporzio
Created May 22, 2017 13:36
Show Gist options
  • Save calebporzio/75809fce577749efb5e04990122ec026 to your computer and use it in GitHub Desktop.
Save calebporzio/75809fce577749efb5e04990122ec026 to your computer and use it in GitHub Desktop.
A modified Laravel composer.json for including a local "laravel/framework" repostory
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.x-dev",
"laravel/tinker": "~1.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"repositories": [
{
"type": "path",
"url": "../laravel-framework"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment