composer create laravel 5.6 project code example
Example 1: laravel create
$user = User::create([
'first_name' => 'Taylor',
'last_name' => 'Otwell',
'title' => 'Developer',
]);
Example 2: laravel instal
composer global require laravel/installer
laravel new example-app
php artisan serve