4
안녕하세요, 나는 마이그레이션을 통해 laravel에서 (일반적으로 DB로 작업하는) 테이블을 만드는 것에 대해 질문이 있습니다.Laravel, migrations 스키마 클래스
난 (행복 코드에서) 이런 일이 9 개 필드 테이블 "사용자"를 생성합니다
<?php
Schema::create('users', function($table) {
$table->increments('id');
$table->string('username', 32);
$table->string('email', 320);
$table->string('password', 64);
$table->integer('role');
$table->boolean('active');
$table->timestamps();
});
확인을 가지고,하지만 난이 콜백에 의해 혼란스러워지고 있어요. 우선 변수 "$ table"은 어떤 클래스의 인스턴스입니까? 누군가 여기서 일어난 일을 어떻게 설명 할 수 있습니까?