Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Illuminate\Support\Arr' not found #665

Closed
yooouuri opened this issue Oct 5, 2017 · 6 comments
Closed

Class 'Illuminate\Support\Arr' not found #665

yooouuri opened this issue Oct 5, 2017 · 6 comments

Comments

@yooouuri
Copy link

yooouuri commented Oct 5, 2017

  • Lumen Version: 5.5.*
  • PHP Version: PHP 7.1.9-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Sep 2 2017 05:56:43) ( NTS )
  • Database Driver & Version: -

Description:

I am trying to create a new lumen project.

After running php artisan key:generate the following error occour

[Symfony\Component\Debug\Exception\FatalThrowableError]  
  Class 'Illuminate\Support\Arr' not found

Steps To Reproduce:

lumen new <name>
cd <name>
composer install
cp .env.example .env
php artisan key:generate

@ludo237
Copy link

ludo237 commented Oct 6, 2017

Key generate is not part of lumen default commands, where did you get that?

@yooouuri
Copy link
Author

yooouuri commented Oct 6, 2017

@ludo237

Like laravel, I thought i should generate a key.

When i go to the url of my Lumen website, i got the same Class 'Illuminate\Support\Arr' not found error...

@ludo237
Copy link

ludo237 commented Oct 6, 2017

You have to generate that, but in other ways, anyway..

It's hard to determine the cause of the problem. I tryed the steps above with a fresh lumen installation and I do have the Arr.php in vendor\illuminate\support

Have you reference that correctly? Try dumping the composer autoload first

@martendej
Copy link

I seem to be having the same issue. Ran composer install on a fresh lumen installation, keep getting the 'Illuminate\Support\Arr not found' error. When I dig further in the vendor folder, the Arr.php indeed does not exist. Tried composer dumpautoload, composer clearcache and reinstall, no success. The Arr.php file is just gone.. Any ideas anyone?

@martendej
Copy link

martendej commented Jan 31, 2018

Ok, I did some research and it seems that some files are not being created when running composer install (I'm using version 5.0.1, Vagrant 1.8.5 & VirtualBox Guest Additions 5.1.12 with MacOS High Sierra 10.13.1) with the 'NFS' flag in the Homestead.yaml file. After commenting the NFS option and reloading homestead and rerunning composer install all files are created as they should and the project works again. Does anyone know why this is happening? @GrahamCampbell or @taylorotwell maybe?

@martendej
Copy link

martendej commented Jan 31, 2018

Ok, it seems to be an issue with MacOS High Sierra and the NFS option. Apple fixed it in High Sierra 10.13.2 (beta). This issue covers it and should clarify some things. I will try updating and I hope the problem is resolved after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants