php artisan serve Go to http://127.0.0.1:8000 and you'll see the default Laravel welcome page.
Install ServBay We'll use ServBay to manage our local PHP development environment on Mac. ServBay includes multiple versions of PHP/Node/MariaDB/PostgreSQL, and it can install Redis/Memcached for you. These are the steps to install ServBay: 1. Go to Servbay's home page: https://www.servbay.com 2. Download the latest version 3. Open the installer and drag ServBay.app into the Applications folder
4. Open ServBay.app and follow the initialization steps
Add a New Host After installing ServBay, you can add a new host for your example laravel application. Go to the Hosts tab, click the plus button, and you'll see the Add Host form. 1. Set Name to "Laravel 11 Demo" 2. Set Domain to "lara.host", 3. Set Root Directory to the public folder of example-app [图片] Hit the "Add" button and you're ready to go. Now visit lara.host and you will see the default welcome page from the example-app.
From now on, you can use ServBay for Laravel local development, happy coding!