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

migration for structure files returns named classes. #55

Open
4 tasks done
robbykrlos opened this issue Sep 26, 2023 · 0 comments
Open
4 tasks done

migration for structure files returns named classes. #55

robbykrlos opened this issue Sep 26, 2023 · 0 comments

Comments

@robbykrlos
Copy link

This is a bug.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you check the documentation?
  • Did you perform a cursory search?

Description

When opting for generating files for migration and structure, the files generated are following 2 different patterns

  1. the normal migration file follows the new PHP 8 anonymous class:
return new class extends Migration
{
...
  1. the migration for "structure" does not follow the same approach, generating named classes:
class MyNamedClassStructureForModel extends Migration
{
...   
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

1 participant