Migrate refresh khởi tạo lại Migrate ban đầu :) (ok)
https://medium.com/modulr/create-api-authentication-passport-in-laravel-5-6-confirm-account-notifications-part-2-5e221b021f07
php artisan migrate:refresh
C:\xampp\htdocs\auth\database\migrations\2014_10_12_000000_create_users_table.php
Ban đầu :)
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}
Sau khi chỉnh sửa
C:\xampp\htdocs\auth\app\User.php
Ban đầu :)
Sau khi chỉnh sửa
PreviousMigration trong Laravel và những điều cần biết 3 (ok)NextCấu hình ở local && Cấu hình production. (ok)
Last updated
Was this helpful?