I recently updated a Laravel app running on Laravel Vapor to PHP 8.2. First, things first, we need to update our local development environment to run PHP 8.2.

Update PHP brew upgrade php #updating-laravel-sail Updating Laravel Sail My Laravel app uses Laravel Sail and docker to run locally.

These steps following the official documentation on the Laravel docs site for setting the PHP version for Laravel Sail.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners