将Laravel站点移动到Localhost时出错

时间:2015-12-18 07:57:27

标签: php laravel composer-php

我是laravel的新手我在我的测试服务器中有一个laravel网站。现在我想将该网站转移到localhost。 我已将数据库连接更改为app / config / database.php

但是当我运行网站时,它会给我一个错误

enter image description here

我的composer.json代码看起来像这样

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "laravel/framework": "4.2.*",
        "cartalyst/sentry": "2.1.*",
        "thujohn/pdf": "dev-master"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable"
}

请帮我在本地系统中运行该网站

1 个答案:

答案 0 :(得分:-1)

首先通过Composer安装此软件包。编辑项目的composer.json文件以要求dinesh /条形码。

"require": {
    "laravel/framework": "5.0.x",
    "dinesh/barcode": "5.0.*@dev"
}

接下来,从终端更新Composer:

composer update