Laravel应用程序:名称打破了我的整个应用程序

时间:2017-01-16 02:22:44

标签: php laravel composer-php laravel-5.3

我最近部署了我的应用程序并希望之后更改我的应用程序名称,所以我已经完成了一次并将其更改为RbxRock。

然后我意识到我做了一个拼写,因此我把它改回了Laravel,但在这一点上,我现在得到了很多错误和异常,我甚至不能再使用php artisan

其中之一是:

PHP Fatal error:  Uncaught ReflectionException: Class App\Console\Kernel does not exist in /var/www/html/rocks/vendor/laravel/framework/src/Illuminate/Container/Container.php:749

这是我的composer.json文件

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.3.*",
        "devdojo/chatter": "^0.1.22",
        "pusher/pusher-php-server": "^2.6",
        "paypal/rest-api-sdk-php": "*",
        "paypal/adaptivepayments-sdk-php":"v3.6.106",
        "laravel-notification-channels/discord": "^0.0.1"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.0",
        "symfony/css-selector": "3.1.*",
        "symfony/dom-crawler": "3.1.*",
        "fahim/laravel5-paypal-ipn": "dev-master@dev"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/",
            "ePOS\\": "app/ePOS"
        },"files": [
            "app/Library/paypalHelpers.php",
            "app/Library/robloxHelpers.php"
        ]
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "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"
    }
}

在Kernel.php的顶部

namespace App\Console;

//use DB;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
}

0 个答案:

没有答案