Laravel 5.8
By Max Snow
maxsnow.me
github.com/specialtactics
Native support for Carbon 2
Automatic Policy Resolution is Coming to Laravel 5.8
Blade Template File Path
dotenv 3.0
Misc
Some more interesting changes...
So you think that a minor package update should have no breaking changes huh?
Taylor Otwell, 2019, trollerised
Caching
Various aspects changed to confirm to PSR-16
Changes in how TTL is specified
// Laravel 5.7 - Store item for 30 minutes...�Cache::put('foo', 'bar', 30);��// Laravel 5.8 - Store item for 30 seconds...�Cache::put('foo', 'bar', 30);
How to update
// Laravel 5.7 / 5.8 - Store item for 30 seconds...�Cache::put('foo', 'bar', now()->addSeconds(30));
Other changes
Str & Arr helpers
Deprecated & will be removed in 5.9
All global string & array helpers deprecated
New syntax
Conclusion
An interesting update, which has more features than most, more changes than most - and thus requiring a bit more effort, than most.
So what’s up with Laravel 6?
Bonus
Scheduler...
Scheduler...
Scheduler...
Scheduler...
Bonus #2
Rounding vs Truncating in PHP
Solution? Wrote my own function to do it