Skip to content

setup Laravel on linux?

Posted on:October 4, 2023 at 02:12 PM

Table of contents

Open Table of contents

prerequisites:

Installation

composer

Follows for offical Guide

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Gobal install
sudo mv composer.phar /usr/local/bin/composer
on fedora
sudo dnf install composer
on Arch Linux
sudo pacman -Syu composer

Create new Laravel Project

After you have installed PHP and Composer, you may create a new Laravel project via Composer’s create-project command:

composer create-project laravel/laravel example-app

for follow up on documentation