When deploying my application through Laravel Forge, I get the following errors:
Fatal error: Class 'Illuminate\Support\Arr' not found in /home/forge/toono.co/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 151
This is after running the composer update command. I have SSH'd in the directory, and low and lo, the Arr.php file Arr.php not exist.
The code is pulled from the main branch in BitBucket, and then the following lines are executed on the production server:
cd /home/forge/default git pull origin master composer install php artisan migrate
Composer.json:
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "laravel/framework": "4.2.*" }, "require-dev": { "way/generators": "2.*", "fzaninotto/faker": "1.4.*@dev", "barryvdh/laravel-debugbar": "1.*", "flynsarmy/csv-seeder": "1.0.*" }, "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 debugbar:publish", "php artisan optimize" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" }, "minimum-stability": "stable" }
Composer.lock:
"require": { "codesleeve/stapler": "~1", "laravel/framework": "~4", "php": ">=5.4.0" }
Why did composer update skip this file? After a local update, and even on the main branch in Github, is Arr.php ?
If I am missing the required code that you need, let me know.
Any help would be greatly appreciated.