Giter Site home page Giter Site logo

Comments (12)

rvanbaalen avatar rvanbaalen commented on June 25, 2024 3

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

from laravel-5-generators-extended.

tfortier avatar tfortier commented on June 25, 2024 1

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.

from laravel-5-generators-extended.

 avatar commented on June 25, 2024

Same error. Waiting for the fix.

from laravel-5-generators-extended.

inpariswithyou avatar inpariswithyou commented on June 25, 2024

Also get the same error and would like a fix!

from laravel-5-generators-extended.

ivanvermeyen avatar ivanvermeyen commented on June 25, 2024

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

from laravel-5-generators-extended.

mikeritter avatar mikeritter commented on June 25, 2024

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.

from laravel-5-generators-extended.

firescript avatar firescript commented on June 25, 2024

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

from laravel-5-generators-extended.

xiaolp avatar xiaolp commented on June 25, 2024

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

ScaffoldMakeCommand.php

from laravel-5-generators-extended.

LourensThalen avatar LourensThalen commented on June 25, 2024

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

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

from laravel-5-generators-extended.

SoeThandarAung avatar SoeThandarAung commented on June 25, 2024

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

from laravel-5-generators-extended.

kevosomi avatar kevosomi commented on June 25, 2024

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.

from laravel-5-generators-extended.

rvanbaalen avatar rvanbaalen commented on June 25, 2024

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

from laravel-5-generators-extended.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.