Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

firstOrCreate() only encrypts properties in first parameter--not second. #39

Closed
dclaysmith opened this issue Dec 17, 2018 · 1 comment
Closed

Comments

@dclaysmith
Copy link

firstOrCreate() takes a second parameter--a list of attributes to be applied to model that is found or created: https://laravel.com/docs/5.5/eloquent

$flight = App\Flight::firstOrCreate(
['name' => 'Flight 10'], ['delayed' => 1]
);

In this case, "delayed" would not be encrypted.

@austinheap
Copy link
Owner

Closing: zero technical context. Feel free to re-open w a repro case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants