create laravel project command
composer global require laravel/installer
laravel new blogcomposer create-project --prefer-dist laravel/laravel blogcomposer create-project --prefer-dist laravel/laravel blog "6.*"laravel new blog// To install and use a specific version, you can enter it at the end of the command.
// For example using version 5.8 ==>
composer create-project --prefer-dist laravel/laravel projectName "5.8.*"Before starting this hope you installed composer dependancy manager for PHP.
-----------------------------------------------------------------------------
So if you want to create a project by name of 'first_laravel_app' in directory C:/xampp/htdocs/ then what you need to do is
Locate your project parent directory using cmd
>cd c:/xampp/htdocs
and fire this command
>composer create-project laravel/laravel first_laravel_app --prefer-dist
And its done, this is really easy and it also creates Application Key automatically for you.
# I hope it will help you.
# Namaste
Also in PHP:
- drupal 7 db_query example
- command line how to create folder and file php
- check for a key in array + php
- SERVER URL PHP
- exception ph
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 57344 bytes) doing chunked update in laravel
- "Phpstorm 2020.2.3 activation code"
- check if string exist in string php
- Allowed memory size of 134217728 bytes exhausted in php 7 linux
- catch new exception php
- chrome dev tools php console log
- create seeders in laravel 8
- Token capabilities in vault
- add 6 months to date in php
- create random password in php
- error log php display on screen
- error reporting set 0 in php
- 500 not found in laravel
- array in array php foreach example
- Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
- check substring exists in string php
- exit try php
- actual date php
- file to binary php