Create New Laravel Project Ubuntu

[Solved] Create New Laravel Project Ubuntu | Php - Code Explorer | yomemimo.com
Question : create new laravel project ubuntu

Answered by : uzair-rashid-tak

composer create-project laravel/laravel . --prefer-dist

Source : https://blog.programster.org/create-a-laravel-project | Last Update : Fri, 25 Jun 21

Question : create new laravel project ubuntu

Answered by : uzair-rashid-tak

1) Install the necessary PHP extensions:
sudo apt install -y \ openssl php8.0-curl libapache2-mod-php8.0 php8.0-mbstring \ php8.0-mysql php8.0-xml php8.0-zip php8.0-pdo
2)Create folder for your project and navigate into it.
PROJECT_NAME="my-project"
mkdir $PROJECT_NAME
cd $PROJECT_NAME
3)Initialize the project through composer.
composer create-project laravel/laravel . --prefer-dist
That will install the latest version of laravel.
If you wish to install a specific version of laravel, use:
composer create-project laravel/laravel . 5.8 --prefer-dist
Note: If running Ubuntu 18.04, you probably want to have the following
packages installed: php7.2-cli php7.2-bcmath php7.2-mysql php7.2-xml
php7.2-mbstring php7.2-json. 

Source : | Last Update : Fri, 25 Jun 21

Answers related to create new laravel project ubuntu

Code Explorer Popular Question For Php