The goal is to track all API changes to Illuminate components for the 4->5 upgrade.
If you run into any issues with using your Illuminate components the same way you did in 4, please leave them as a comment here so we can document it all.
Note that this is different from framework changes in terms of how you boot the application, structure your application, etc.--there's a separate gist for that.
- If you wanted to create your own instance of Cache so you could use ::get, ::set, etc. you would've injected
CacheManager
. Now,CacheManager
is responsible for returning an instance of CacheRepository
, which is what you now want in order to use the cache methods.
- Query Builder & Eloquent no longer allow caching through
remember()
; you'll have to manually cache database results.
- Note about change to Flysystem
- Deprecated
$paginator->links($view)
has now been replaced with$paginator->render(Presenter $presenter)
.
- Laravel 5.0 now requires "pda/pheanstalk": "~3.0" instead of "pda/pheanstalk": "~2.1" that Laravel 4.2 required.
- Deprecated
- Deprecated
Database:
Cache has now been removed from Query Builder, ie in L4 you could do.
Now you have to create your own caching implementation.
A better suggestion would be to create a UsersCacheRepository and UsersDbRepository both implementing an interface. You would then Decorate UsersDbRepository with your caching layer.