Artisan, creating tables in database



PHP Snippet 1:

php artisan make:migration create_users_table

PHP Snippet 2:

php artisan make:migration create_users_table --create=users

PHP Snippet 3:

php artisan make:migration create_users_table --create=users

PHP Snippet 4:

php artisan migrate

PHP Snippet 5:

php artisan make:migration create_users_table --create=users

php artisan migrate --path=/database/migrations/0000_00_00_000000_create_users_table.php

PHP Snippet 6:

php artisan make:migration create_users_table --create=users

PHP Snippet 7:

    public function up()
{
    Schema::create('users', function(Blueprint $table)
    {
        $table->increments('id');
        $table->string('username');
        $table->string('fullname');
        $table->int('number');
        $table->string('email')->unique();
        $table->string('password', 60);
        $table->rememberToken();
        $table->timestamps();
    });
}

PHP Snippet 8:

php artisan migrate

PHP Snippet 9:

php artisan make:migration create_users_table

PHP Snippet 10:

php artisan migrate