Skip to content

1.16.0

Latest

Choose a tag to compare

@JacobJoergensen JacobJoergensen released this 25 Aug 19:02
· 1 commit to main since this release

Documentation

Laravel-Paper now has a home. Full documentation lives at laravel-paper.com.

What's Changed

  • Changed save to read the slug after the saving and creating events, so a listener can set or rewrite it
  • Changed save to return false when a record is renamed onto a slug another record holds, instead of overwriting it
  • Improved where and get to keep the model type, so Post::where('draft', true)->get() is a collection of Post
  • Fixed save to move the file when a record's slug changes; it wrote a second file and left the first behind
  • Fixed delete to remove the file the record was loaded from, so a slug changed on the model no longer deletes another record
  • Fixed latest and oldest to order by the model's CREATED_AT column instead of always created_at

Full Changelog: 1.15.0...1.16.0