Comments (12)
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.
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.
Same error. Waiting for the fix.
from laravel-5-generators-extended.
Also get the same error and would like a fix!
from laravel-5-generators-extended.
It's just this reference to Composer:
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.
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.
Thanks guys! Big help 👍 on the quick fix, @tfortier worked for me.
from laravel-5-generators-extended.
replace use Illuminate\Foundation\Composer;
to
use Illuminate\Support\Composer;
ScaffoldMakeCommand.php
from laravel-5-generators-extended.
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.
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.
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.
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)
- use Illuminate\Support\Facades\Schema; HOT 2
- Need to upgrade with the laravel 7. HOT 5
- V2 status ? HOT 3
- config file - allow developers to change the default model generation behaviour (from false to true), to generate models by default
- config file - allows developers to change where models are generated
- default to generating models in app\Models HOT 1
- remove ```make:seed``` command since Laravel 5.8+ has an official ```make:seeder``` HOT 1
- Generated models should include proper relationships
- Unable to migrate pivot table. SQLSTATE[HY000]: General error: 1215 HOT 6
- "php artisan make:migration:pivot" didn't add "use Illuminate\Support\Facades\Schema;" automatically HOT 1
- Improve foreign key generator based on Laravel 7
- create empty pivot table
- Add GIF to readme HOT 1
- Update documentation HOT 1
- 'viewAny' policy documentation is ambivalent HOT 4
- I couldn't install this package with Laravel 5.8.* HOT 5
- Pivot Table creation results in error: ErrorException : array_map() expects parameter 1 to be a valid callback, class 'Str' not found HOT 2
- Why is is it called "schema"? HOT 2
- Laravel 10 HOT 3
- Fails to migrate Foreign Constraints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-5-generators-extended.