Laravel v5.8.10 is realesed with 2 new features.
This PR introduces “replicating” model event which is fired
$movie = Movie::find(1); $newMovie = $movie->replicate(); $newMovie->save();
This is useful when “replication” is a part of the domain logic. My use-case: I need to reset an attribute every time a model is replicated because that attribute is specific to the model.
Laravel v5.8.10 release:
- Exclude non-existing directories from event discovery (#28098)