Laravel v5.8.10 released

Laravel v5.8.10 is realesed with 2 new features.

Thereplicating event

For example,
 replicating event is added for when you want to make a copy of a model. and is called

This PR introduces “replicating” model event which is fired when is called.

$model->replicate()
$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:

Added

  • Added replicating model event (#28077)
  • Make NotificationFake macroable (#28091)

Fixed

  • Exclude non-existing directories from event discovery (#28098)

Changed

  • Sorting of events in event:list command (3437751)
  • Removed path hint in compiled view (33ce7bb)


Leave a Reply

Your email address will not be published. Required fields are marked *