0

因此,Laravel spark 不再让我连接到 github,这导致我无法推送到 heroku 并完全停止我的工作。我尝试将火花代码放在一个文件夹中,然后制作代码路径存储库。但是,当我运行 composer update 时,它​​仍然会尝试从同一个 github 位置获取代码。似乎它没有找到回购。

我已经尝试了大量的路径变化并将代码放置在不同的位置。以下是作曲家的部分:

    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "laravel/spark":"*",
....

    "repositories": [
        {
            "type": "path",
            "url": "vendor/laravel/spark"
        },    
        {
            "type": "composer",
            "url": "https://spark-satis.laravel.com"
        }
    ],

而且,在包作曲家...

"name": "laravel/spark",
"description": "Laravel Spark provides scaffolding for Laravel SaaS applications.",
"keywords": ["laravel", "stripe", "billing", "scaffolding", "saas"],
"license": "MIT",
"authors": [
    {
        "name": "Taylor Otwell",
        "email": "taylorotwell@gmail.com"
    }
],
"require": {
    "php": ">=5.5.9",
    "erusev/parsedown": "~1.0",
    "firebase/php-jwt": "~3.0",
    "guzzlehttp/guzzle": "~6.0",
    "ramsey/uuid": "^3.1",
    "intervention/image": "^2.3"
},
"require-dev": {
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~5.0",
    "mpociot/vat-calculator": "^1.6"
},
"autoload": {
    "psr-4": {
        "Laravel\\Spark\\": "src/"
    }
},
"extra": {
    "branch-alias": {
        "dev-master": "2.0-dev"
    }
},
"minimum-stability": "dev"

我是否缺少一些东西来确保作曲家使用路径 repo 而不是查看 github?

4

2 回答 2

1

将 laravel/spark 代码推送到您自己的 git repo,而不是在 composer.json 内部使用

"repositories": [
    {
        "type": "vcs",
        "url": "https://path to your repo"
    }
],

并运行composer require laravel/spark,它应该从你的仓库中获取代码

于 2017-03-17T21:44:10.193 回答
1

由于 laravel/spark 不再免费,无法使用 composer 安装或更新

您必须购买许可证版本才能使用它。

https://spark.laravel.com/licenses

于 2017-03-29T13:14:05.183 回答