-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Initial commit of command `xseed:relation`
#64 was solved. |
There was a problem hiding this 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.
Added tests for relationship commands
using `assertFileEquals` instead of `assertFileMatchesFormat`
Changed extension to avoid lint on sample files
Great job! |
Added a command to create laravel's relationship functions based on the foreign keys configured on the table.
Currently it only generates
belongsTo
andhasMany
relationships on MySQLand SQLiteI could not provide tests as the current tests didn't work on my machine.