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

[7.x] Add parameter to constrained() method #31853

Merged
merged 4 commits into from
Mar 9, 2020
Merged

Conversation

samuelhgf
Copy link
Contributor

This PR implements a possibility to the developer put the name of the table inside the constrained method. This feature helps in case of creating a foreign key using the constrained method but having a column name not expected by laravel convention.

@themsaid themsaid changed the title Add parameter to constrained() method [7.x] Add parameter to constrained() method Mar 9, 2020
@@ -30,16 +30,18 @@ public function __construct(Blueprint $blueprint, $attributes = [])
/**
* Create a foreign key constraint on this column referencing the "id" column of the conventionally related table.
*
* @param string $table
Copy link
Member

Choose a reason for hiding this comment

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

string|null

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.

3 participants