Laravel: How to “Fake” Current Time in Carbon

Quick “trick” for how to test different time, if your code depends on *current* time or date.

– – – – –
I’m available for freelance Laravel work, check out my Upwork profile: http://bit.ly/povilas-korop-upwork

– – – – –
Our Laravel blog: https://laraveldaily.com
Our 50+ Laravel tips in a FREE e-book: http://bit.ly/laravel-tips
Enroll in our online courses: http://bit.ly/laravel-courses
Try our QuickAdminPanel code generator: http://bit.ly/quickadminpanel
Follow us on Twitter: http://bit.ly/twitter-laraveldaily

Source: https://www.youtube.com/watch?v=xSVvVtj3j_8

Leave a Reply

Your email address will not be published. Required fields are marked *