March 6, 2022
When I updated my computer’s version of PHP to version 8.1, I was getting some big “Deprecation Notice” errors in my console when I was running commands like laravel new
or when using the Laravel CLI in other ways.
It seems like Laravel’s CLI previously used code features that are going to be deprecated, and PHP 8.1 has started warning about those soon-to-be-removed features.
However, the code for Laravel’s CLI has been updated to get rid of these warnings!
To upgrade your computer’s version of the Laravel CLI, first run:
composer self-update
This updates your computer’s own version of Composer, the PHP package manger (similar to npm in the Node.js ecosystem).
Next, run:
composer global update
This updates your global Composer packages, including the Laravel CLI.
Now if you run the Laravel CLI commands again, the warnings about deprecated features should be gone!
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects I’m working on!