Skip to content

Conversation

driesvints
Copy link
Member

Because the make:seeder & make:factory command generate namespaced classes from their stubs, the upgrade to implement these namespaces is a required one. Therefor I think it's good that we document this in the Laravel 8 upgrade guide.

Closes laravel/framework#34243

@browner12
Copy link
Contributor

can we accomplish the autoloading in one line?

 "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\": "database/"
        }
    },

@vladislavtkachenko
Copy link

browner12, no, PSR-4 error

@browner12
Copy link
Contributor

we would just need to capitalize the folders within /database, correct?

@driesvints
Copy link
Member Author

@browner12 no we can't as schema and migrations aren't namespaced.

@browner12
Copy link
Contributor

thanks!

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

Successfully merging this pull request may close these issues.

seeder does't work correctly if I specify --class=... option

4 participants