how to build laravel project code example

Example 1: create laravel project

composer create-project laravel/laravel example-app

cd example-app

php artisan serve

Example 2: laravel new project

laravel new blog

Example 3: laravel new project

composer create-project --prefer-dist laravel/laravel blog

Example 4: how to make website with laravel

Schema::table('users', function($table)
{
    $table->create();
    $table->increments('id');
    $table->string('username');
    $table->string('email');
    $table->string('phone')->nullable();
    $table->text('about');
    $table->timestamps();
});

Tags:

Php Example