Laravel

Setting Up Your First Laravel Project

Install PHP and Composer, create a project, and run it on your own machine.

C Codesakura 1 min 0 comments

Contents

Before writing code, let us prepare the tools. You need PHP 8.3 or newer, Composer, and Node.js.

Creating the project

Run this in the folder where you keep your projects:

composer create-project laravel/laravel shop
cd shop
php artisan serve

Setting up the database

Open the .env file, fill in the database name and user, then run the migrations:

php artisan migrate

Part of a series

Laravel from Scratch
  1. 1Setting Up Your First Laravel Project
  2. 2Mengenal Routing dan Controller di Laravel
  3. 3Building a REST API with Laravel from Scratch
Share X Facebook WhatsApp Telegram

0 comments

Log in to join the conversation. Log in

Related tutorials

Laravel

Building a REST API with Laravel from Scratch

1 min Series · Part 3 of 3

Laravel

Mengenal Routing dan Controller di Laravel

1 min Series · Part 2 of 3

Laravel

Upload File yang Aman di Laravel

1 min