laravel.com documentation code example
Example 1: install laravel globally
composer global require laravel/installer
Example 2: install laravel
composer create-project --prefer-dist laravel/laravel blog
Example 3: laravel create project
// 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.*"
Example 4: install laravel
laravel install on windows
-----------------------------------
1-composer install
https://getcomposer.org/download/
2-laravel install using composer
composer global require laravel/installer
3-create new project
laravel new blog
cd blog
4-serve project to localhost
php artisan serve
Example 5: laravel instal
composer global require laravel/installer
laravel new example-app
php artisan serve
Example 6: laravel documentation
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Flight extends Model
{
//
}