Open casenjo opened 8 years ago
The Repository class is missing a very useful function to be able to create a model if it doesn't exist, or update it if it does.
The updateOrCreate($attributes, $values) function was added to the Repository contract and abstract class to account for this.
The Repository class is missing a very useful function to be able to create a model if it doesn't exist, or update it if it does.
The updateOrCreate($attributes, $values) function was added to the Repository contract and abstract class to account for this.