Requirements
Before getting started, make sure you have installedPHP 8.3+
, Node.js 21+
, Nginx
or Apache
server, and (optionally) 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.
Docker
Instructions coming soon…Setup
Open your terminal, and run those commands to get started.Clone the repository
Stay in sync with upstream repo
Use those instructions if you want to keep version control and track future updates in main repository.Check remotes
Update origin remote
Add upstream remote
Verify remotes again
Fetch updates from upstream
Add, commit and push as usual
Standalone project
Use those instructions if you want to treat your project as an independent repository without any version control and future updates. All future updates you will need to handle manually.Remove current git repo
Initialize a new git repo
Commit all files
Create remote repo
Push your changes
Create environment file
After you have setup your git repository, continue with the app setup by creating an environment file.Setup database credentials
By default, is usingSQLite
as database connection.
To change database name (default is database.sqlite
) set the variable in your .env
. Make sure to enter the absolute path, not just the database name.
This is example for
MySQL
connection, but you can use any of the supported database services.
Quick installation
Once you have setup your.env
file, run this command and follow the steps.
Quick installation will run all the commands under Manual setup so you can
skip the manual setup all together when using quick installation.
Manual setup
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.
Before using the application, you should run
migrations to create your database (and seeders to
have some data to work with).