Problems with Composer and Laravel 5.0 on Mac El Capitan

Asked

Viewed 89 times

0

I have the following error, after running a command to install a versioned project.

Script php Artisan clear-Compiled Handling the pre-update-cmd Event returned with an error

[Runtimeexception]
Error Output: PHP Fatal error: Class 'Illuminate Foundation Application' n
ot found in [PASTA_DO_PROJETO]/bootstrap/app.php on line
14

Composer file:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "laravel/framework": "5.0.*",
        "pagarme/pagarme-php": "dev-master",
        "guzzlehttp/guzzle": "~5.0",
        "lucadegasperi/oauth2-server-laravel": "~4.0"
    },
    "require-dev": {
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1",
        "barryvdh/laravel-debugbar": "^2.0"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-create-project-cmd": [
            "php -r \"copy('.env.example', '.env');\"",
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

  • Try to make a Dump-autoload and try again.

  • I’ve done it, I’ve also run Composer install --no-scripts and nothing yet

  • Remove vendor folder, check your php app. in /bootstrap, try Dump-autoload and Composer install again and see if it goes back to normal... because this fault is in the app.php file that starts the application it just reads the Application of Laravel.

  • I did as recommended, <pre> Laravel/framework v5.0.9 requires ext-mcrypt * -></pre>, would have to enable php mycrpt but it is already enabled I have other projects with Laravel and they work perfectly

  • At least you found the Application. Now it’s mcrypt... see if your . env already has a key to access the system.

  • It does not let me create the key, nor run any Artisan PHP Fatal error: Class 'Illuminate Foundation Application' not found in /Users/emiddev/Code/Farmin-payment/bootstrap/app.php on line 14

  • Same mistake... =( Sorry I can’t help... really don’t know what to suggest....

  • 'Cause I’ve already reviewed the internet and I can’t find anything, I’ve even installed it on another machine and the same mistake happens

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.