Create new laravel project
composer global require laravel/installer
laravel new example-app
cd example-app
php artisan serve
Create new laravel project
composer global require laravel/installer
laravel new example-app
cd example-app
php artisan serve
how to start composer in laravel project on localhost
php artisan serve
/*
To START composer in project folder on MacOS:
The original answer is:
The full command works like this:
php artisan serve --host=<host IP address> --port=<port to use>
php artisan serve --host=127.0.0.1 --port=8080
AFTER: php artisan serve TERMINAL SHOWS:
Laravel development server started: <http://127.0.0.1:8000>
IN WEB BROWSER ENTER THE:
http://127.0.0.1:8000 , OR:
http://localhost:8000/
AND YOU ARE IN ! ! !
*/
http://127.0.0.1:8000/
http://localhost:8000/
create project command in laravel
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
how to install new project in laravel
You can create project by 2 ways:
First is installing it without defining version:
composer create-project laravel/laravel yourProjectName
Secondly you can install by defining version:
composer create-project laravel/laravel="VersionOfYourChoice" yourProjectName
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us