Laravel automatically injects the current Http [request object][1] to all Controller actions and Middleware. Leveraging this object improves consistency and testability.
[1]: https://laravel.com/docs/requests#accessing-the-request
Laravel offers many helper functions, including: `view()`, `response()`, `redirect()`, `config()`, and more.
Review the [Helpers][1] documentation for more details.
[1]: https://laravel.com/docs/5.7/helpers
To conform with PSR-16 Laravel 5.8 changed the cache expiration time from minutes to seconds. If you were passing an integer, Shift converted this to its integer equivalent in seconds. If you were passing a "minutes" variable, Shift converted this to the relative date time equivalent for readability.
Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are [deprecated in Laravel 5.8][1] and will be removed in a future version.
[1]: https://github.com/laravel/framework/pull/26898
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
* Shift core files
* Shift app folder structure
Laravel 5.3 no longer includes the `Events`, `Jobs`, `Listeners`, and
`Policies` folders by default. Instead, they are created when you make
them using `artisan`.
* Shift Middleware
* Shift Providers
* Shift configuration
* Shift Routes
Laravel 5.3 now stores Routes in a top-level `routes` folder and
separates them into API, console, and web files.
* Shift deprecations
The `Str::randomBytes` and `Str::equals` methods were deprecated in
Laravel 5.2 and removed in Laravel 5.3 in favor of the native
`random_bytes` and `hash_equals` PHP functions.
In addition, the Collection method `lists()` was replaced with
`pluck()`.
* Shift Laravel dependencies
* Shift cleanup
* Updated composer.json
* Updated providers to 5.3 style
* Removed events folder and extend correct exceptions handler
* Updated configuration
* Shift back our method names from ending in "pluck" to "list"
* Temporarily add back in old mcrypt encrypter