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

[8.x] Add raw() method to factory #34278

Merged
merged 2 commits into from
Sep 11, 2020
Merged

Conversation

dwightwatson
Copy link
Contributor

This re-introduces the raw() method which was previously available on model factories.

I personally find this useful for when testing requests and I want to pass through valid model data, I can just get the raw attributes in an array and pass them straight into the request.

It looks like I'm not the only one who misses raw():

Thanks 🙂

@taylorotwell taylorotwell merged commit e65ac91 into laravel:8.x Sep 11, 2020
@dwightwatson dwightwatson deleted the 8.x-raw branch September 12, 2020 01:00
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.

2 participants