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

(php artisan) Causes an Error in Laravel 5.2 #81

Closed
shawnsandy opened this issue Dec 22, 2015 · 12 comments
Closed

(php artisan) Causes an Error in Laravel 5.2 #81

shawnsandy opened this issue Dec 22, 2015 · 12 comments

Comments

@shawnsandy
Copy link

Can anyone help, I am getting an error when I run php artisan

  [ReflectionException]                                
  Class Illuminate\Foundation\Composer does not exist 

had to remove this line to get php artisan to work

    if ($this->app->environment() == 'local') {
        $this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
    }
@ghost
Copy link

ghost commented Dec 22, 2015

Same error. Waiting for the fix.

@inpariswithyou
Copy link

Also get the same error and would like a fix!

@ivanvermeyen
Copy link

It's just this reference to Composer:

https://github.com/laracasts/Laravel-5-Generators-Extended/blob/master/src/Commands/MigrationMakeCommand.php#L8

As Laravel's upgrade says:

"The Illuminate\Foundation\Support\Composer class has been moved to Illuminate\Support\Composer."

There's already a pull request for this: #82

@mikeritter
Copy link

For the time being:

\vendor\laracasts\generators\src\Commands\MigrationMakeCommand.php

line 9

change to use Laracasts\Generators\Migrations\NameParser;

See @tfortier below. ID10T error on my part.

@tfortier
Copy link

I actually had to change line 8 of this file :

\vendor\laracasts\generators\src\Commands\MigrationMakeCommand.php

to this use Illuminate\Support\Composer; in order to solve the error message.

@firescript
Copy link

Thanks guys! Big help 👍 on the quick fix, @tfortier worked for me.

@xiaolp
Copy link

xiaolp commented Apr 3, 2016

replace use Illuminate\Foundation\Composer;
to
use Illuminate\Support\Composer;

ScaffoldMakeCommand.php

@rvanbaalen
Copy link

Just starting the migration from 5.1* to 5.2 and this is still an issue apparently. Why hasn't this been addressed yet?

@LourensThalen
Copy link

Wondering the same. Keeps giving errors, even when I want to switch back to 5.1 :(

[ReflectionException]
Class Illuminate\Foundation\Composer does not exist

@SoeThandarAung
Copy link

Hello, Can anyone help me? When I run php artisan , I got
BadMethodCalException error and
Call to undefined method [RegisterSyncsTableConnector]

@kevosomi
Copy link

kevosomi commented Dec 21, 2016

To solve this issue please find "Illuminate\Foundation\Composer" in your entire project and replace with "Illuminate\Support\Composer". That should fix the problem. Worked in my case in Laravel 5.3.

@rvanbaalen
Copy link

By searching for Illuminate\Foundation\Composer in my vendor folder, I found an incompatible package which was causing this error.

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