Looking to hire Laravel developers? Try LaraJobs

laravel-6-api-dates maintained by pomeloproductions

Description
Middleware to apply to legacy api route groups, which takes date output in the Laravel 7+ format, and outputs them as the legacy format from before Laravel 7.
Author
Last update
2023/02/01 19:56 (dev-dependabot/composer/symfony/http-kernel-5.4.20)
License
Links
Downloads
1

Comments
comments powered by Disqus

Laravel 7 Legacy date format middleware

This package is meant to allow people who currently have public APIs built using the laravel date format before Laravel 7 the ability to simply apply a middleware to those routes, so that they will continue to output the date format that was used by default before Laravel 7. To use this middleware simply apply it to any routes that you need, and those routes will once again output the date format as 'Y-m-d H:i:s', without needing to divert the functionality of your core model from the main laravel functionality.

Please note that at the time of publishing, Laravel 7 is yet to be released, so there may not be a large use for this at this time.