TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Laravel 11 with Servbay – Quick Start Guide

1 点作者 sunnyyy大约 1 年前
Introduction Laravel 11 has been released, bringing many improvements. It introduces a streamlined application structure, per-second rate limiting, health routing, and more. In addition, Laravel Reverb, a first-party, scalable WebSocket server has been introduced to provide robust real-time capabilities to your applications. In today&#x27;s guide, I will setup an example laravel application, and install ServBay for local development on Mac. NOTE: ServBay is your one-stop-shop for local PHP development on Mac. It bundles together everything you need like web servers, databases, programming languages, mail servers and queue services. Create Example Application Let&#x27;s get started generating an example applicaiton using composer. composer create-project laravel&#x2F;laravel example-app This will create an example-app directory, cd to it. cd example-app Now you can start the server:<p>php artisan serve Go to http:&#x2F;&#x2F;127.0.0.1:8000 and you&#x27;ll see the default Laravel welcome page.<p>Install ServBay We&#x27;ll use ServBay to manage our local PHP development environment on Mac. ServBay includes multiple versions of PHP&#x2F;Node&#x2F;MariaDB&#x2F;PostgreSQL, and it can install Redis&#x2F;Memcached for you. These are the steps to install ServBay: 1. Go to Servbay&#x27;s home page: https:&#x2F;&#x2F;www.servbay.com 2. Download the latest version 3. Open the installer and drag ServBay.app into the Applications folder<p>4. Open ServBay.app and follow the initialization steps<p>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&#x27;ll see the Add Host form. 1. Set Name to &quot;Laravel 11 Demo&quot; 2. Set Domain to &quot;lara.host&quot;, 3. Set Root Directory to the public folder of example-app [图片] Hit the &quot;Add&quot; button and you&#x27;re ready to go. Now visit lara.host and you will see the default welcome page from the example-app.<p>From now on, you can use ServBay for Laravel local development, happy coding!

暂无评论

暂无评论