create new laravel project ubuntu

Solutions on MaxInterview for create new laravel project ubuntu by the best coders in the world

showing results for - "create new laravel project ubuntu"
Mayron
24 Mar 2017
1composer create-project laravel/laravel . --prefer-dist
2
Liah
14 Sep 2020
11) Install the necessary PHP extensions:
2
3sudo apt install -y \
4  openssl php8.0-curl libapache2-mod-php8.0 php8.0-mbstring \
5  php8.0-mysql php8.0-xml php8.0-zip php8.0-pdo
6  
72)Create folder for your project and navigate into it.
8
9PROJECT_NAME="my-project"
10mkdir $PROJECT_NAME
11cd $PROJECT_NAME
12
133)Initialize the project through composer.
14composer create-project laravel/laravel . --prefer-dist
15
16That will install the latest version of laravel.
17If you wish to install a specific version of laravel, use:
18
19composer create-project laravel/laravel . 5.8 --prefer-dist
20
21Note: If running Ubuntu 18.04, you probably want to have the following 
22packages installed: php7.2-cli php7.2-bcmath php7.2-mysql php7.2-xml
23php7.2-mbstring php7.2-json.
24
25