Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to install laravel

# Via Laravel Installer
composer global require laravel/installer
laravel new project name
php artisan serve
         or
#Via Composer Create-Project
composer create-project --prefer-dist laravel/laravel:^7.0 project name
php artisan serve
Comment

laravel instal

composer global require laravel/installer

laravel new example-app

php artisan serve
Comment

install laravel 7

composer create-project --prefer-dist laravel/laravel:^7.0 Your project name
Comment

laravel install

composer create-project laravel/laravel <example-app>
Comment

laravel installer

# Laravel installer
composer global require laravel/installer
# install laravel project using this command
laravel new example-app
Comment

laravel composer install


composer create-project laravel/laravel .

php artisan serve
Comment

laravel install by composer

composer create-project --prefer-dist laravel/laravel blog 
cd example-app
php artisan serve
Comment

laravel 4 installer

composer global require "laravel/installer=~4.0"
Comment

INSTALL LARAVEL VIA COMPOSER

composer create-project laravel/laravel {directory} 
Comment

laravel install

composer create-project --prefer-dist laravel/laravel blog "5.6.*"
Comment

laravel install

To install laravel v9 you will need apache2, php8 and composerv2 (Ubuntu 20.04/Ubuntu 18.04)
sudo apt update
sudo apt upgrade

Install and start apache2
sudo apt install apache2
sudo service apache2 start
Open: http://localhost:80
sudo service apache2 stop

Install php8
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.0 php8.0-cli php8.0-common php8.0-xml php8.0-curl
php -v

Enable mods
sudo a2enmod php8.0
sudo a2enmod headers
sudo a2enmod rewrite

Install composerv2
cd /home/user
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
compsoer -V

Install laravel project
composer create-project laravel/laravel example-app
php artisan key:generate --ansi
php artisan serve

Configuration file for apache2 example
cd /etc/apache2
sudo a2dissite 000-default.conf
cd /sites-available
sudo touch appName.conf

sudo nano appName.conf
Copy, paste and configurate:
---------------------------------------------------------------------------------
<VirtualHost *:80>
	ServerName name.local

    // If project is based on multiple env (admin/frontend)
	SetEnv ACTIVE_MODULE frontend
	
	DocumentRoot "pathDirectory/laravel/public"
	<Directory "pathDirectory/laravel/public">
	    Options Indexes FollowSymLinks MultiViews
	    AllowOverride All
	    Require all granted
	    Order allow,deny
	    Allow from all
	</Directory>

	ErrorLog /var/log/apache2/fileName.err
	CustomLog /var/log/apache2/fileName combined
</VirtualHost>
---------------------------------------------------------------------------------

sudo a2ensite appName.conf
sudo service apache2 restart
or
sudo service apache2 start
Comment

laravel install

composer create-project laravel/laravel contoh-app
cd contoh-app
php artisan serve
Comment

Install laravel using composer

composer create-project --prefer-dist laravel/laravel blog "5.4.*"
Comment

install composer laravel

composer require spatie/laravel-permission
Comment

laravel installer version

Laravel Installer Version Check 
laravel -version
ex. laravel -version
Result : Laravel Installer 4.1.1

Comment

PREVIOUS NEXT
Code Example
Php :: laravel blade excerpt from body 
Php :: phpdoc @var 
Php :: laravel withwhere 
Php :: cideigniter orLike() 
Php :: carbon now set timezone 
Php :: php set time counters inside code meassure 
Php :: Full text search laravel mongodb 
Php :: php array remove empty values recursive 
Php :: get chmod of directory php 
Php :: sometimes validation in laravel 
Php :: php check if input is a positive integer 
Php :: bulk write mongodb php 
Php :: php get day of week number 
Php :: laravel compile assets 
Php :: php test questions 
Php :: paginate array before more results php 
Php :: @yield laravel 
Php :: laravel maintenance mode custom class 
Php :: google recaptcha varification in php codeigniter 
Php :: Laravel Extract Values From Collection Using Pluck() with Relationship 
Php :: Update Data Multiple Columns MySql Database Table PHP Function 
Php :: php variable 
Php :: php two array difference merge recursive 
Php :: laravel collection splice 
Php :: Logging a Massage php 
Php :: Php OOP function CRUD 
Php :: php/Laravel check if date is passed 
Php :: form submit self php isset 
Php :: php get variable name as a string 
Php :: laravel, if -get() array is not emtpy 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =