Quickstart
Start building your awesome app in under 5 minutes
Requirements
Before getting started, make sure you have installed PHP 8.3+
, Node.js 21+
, Nginx
or Apache
server, and (optionaly) one of the supported database services: SQLite 3.26+
, MySQL 5.7+
, PostgreSQL 10.0+
, MariaDB 10.3+
or SQL Server 2017+
.
You should also have Composer
(dependency manager for PHP) installed.
Laravel Herd
Laravel Herd is highly recommended local development tool for Laravel. It’s very simple to setup and it provides all of the requirements to run (and much more).
It’s available for MacOS and Windows.
Homestead
Instructions coming soon…
WAMP
Instructions coming soon…
Setup
Open your terminal, and run those commands to get started.
Clone repository
Go to your App folder
Create environment file
Setup database credentials
By default, is using SQLite as database connection.
To change database name (default is database.sqlite
) set the variable in your .env
. Make sure to enter the correct path.
To use different database connection, feel free to update the variables accordingly.
This is example for MySQL connection, but you can use any of the supported services.
Generate application key
Install PHP packages
Install JS packages
Enable public access to storage folder
Build CSS and JS
Run local server
If you use Laravel Herd you don’t need to run local server since Herd will create a local domain for your application.
Open new terminal tab or window and start your app.
Visit http://127.0.0.1:8000/ and see your application.
Quick installation
Once you have setup your .env
file, run this command and follow the steps.