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

[6.x] Documents the explicit Model definitions in database rules #5623

Merged
merged 2 commits into from
Nov 25, 2019

Conversation

Arkanius
Copy link
Contributor

Documents how to use the Model class at the validation rules: laravel/framework#30653

@ahinkle
Copy link
Contributor

ahinkle commented Nov 23, 2019

Might be a bit cleaner and more uniform (with the rest of the docs) to use App\User but I'll let Taylor decide. 👍

'user_id' => 'exists:App\User,id'

@Arkanius
Copy link
Contributor Author

You might be right, I can do this.

@taylorotwell taylorotwell merged commit b26a454 into laravel:6.x Nov 25, 2019
@Arkanius Arkanius deleted the model-as-table-rule branch November 25, 2019 16:04
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