Lumen 5.2 is now released
Published on by Eric L. Barnes
Lumen 5.2.0 is now released! This release features the inclusion of Laravel 5.2 components and makes significant changes to its core philosophy.
Any existing users of Lumen should take note of the following from the documentation:
Only Stateless APIs
Lumen 5.2 represents a shift on slimming Lumen to focus solely focusing serving stateless, JSON APIs. As such, sessions and views are no longer included with the framework. If you need access to these features, you should use the full Laravel framework. Upgrading your Lumen application to the full Laravel framework mainly involves copying your routes and classes over into a fresh installation of Laravel. Since Laravel and Lumen share many of the same components, your classes should not require any modification.
Authentication
Because sessions are no longer included with Lumen, authentication must be done statelessly using API tokens or headers. You have complete control over the authentication process in the new AuthServiceProvider. Please review the authentication documentation for more information.
Testing Helpers
Since session and views are no longer included with Lumen, all of the form interaction testing helpers have been removed. The testing helpers for JSON APIs remain, so be sure to review the testing documentation.
For more details check out the official documentation.
Eric is the creator of Laravel News and has been covering Laravel since 2012.