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

Command for creating relationship functions (belongsTo and hasMany) #65

Merged
merged 15 commits into from
Apr 13, 2024

Conversation

Lopoi
Copy link
Contributor

@Lopoi Lopoi commented Apr 12, 2024

Added a command to create laravel's relationship functions based on the foreign keys configured on the table.

php artisan xeed:relation

bin/console relation

Currently it only generates belongsTo and hasMany relationships on MySQLand SQLite

I could not provide tests as the current tests didn't work on my machine.

@cable8mm cable8mm self-requested a review April 12, 2024 14:39
@cable8mm cable8mm added the enhancement New feature or request label Apr 12, 2024
@cable8mm
Copy link
Owner

cable8mm commented Apr 12, 2024

I could not provide tests as the current tests didn't work on my machine.

#64 was solved.

Copy link
Owner

@cable8mm cable8mm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please lint the source code as if you were running composer lint. Additionally, please checkout the most recent commit, as formatting will be performed on the pull request. The project has been using laravel/pint for coding style.

@cable8mm cable8mm self-requested a review April 13, 2024 00:15
@cable8mm cable8mm merged commit 2eaed65 into cable8mm:main Apr 13, 2024
5 checks passed
@cable8mm
Copy link
Owner

Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants