Documentation
Laravel-Paper now has a home. Full documentation lives at laravel-paper.com.
What's Changed
- Changed
saveto read the slug after the saving and creating events, so a listener can set or rewrite it - Changed
saveto return false when a record is renamed onto a slug another record holds, instead of overwriting it - Improved
whereandgetto keep the model type, soPost::where('draft', true)->get()is a collection ofPost - Fixed
saveto move the file when a record's slug changes; it wrote a second file and left the first behind - Fixed
deleteto remove the file the record was loaded from, so a slug changed on the model no longer deletes another record - Fixed
latestandoldestto order by the model'sCREATED_ATcolumn instead of alwayscreated_at
Full Changelog: 1.15.0...1.16.0