1composer global require laravel/installer
2
3laravel new example-app
4
5php artisan serve
1Before starting this hope you installed composer dependancy manager for PHP.
2-----------------------------------------------------------------------------
3So 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
4
5Locate your project parent directory using cmd
6>cd c:/xampp/htdocs
7
8and fire this command
9>composer create-project laravel/laravel first_laravel_app --prefer-dist
10
11And its done, this is really easy and it also creates Application Key automatically for you.
12
13# I hope it will help you.
14# Namaste
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class Flight extends Model
8{
9 //
10}