我安装了la-ravel,但仅在一个模块中管理,但我想使用其他模块,例如admin,super admin
php artisan make:auth
答案 0 :(得分:1)
public function up()
{
Schema::create(‘users’, function (Blueprint $table) {
$table->increments(‘id’);
$table->string(‘name’);
$table->string(‘email’)->unique();
$table->string(‘password’);
$table->strint('adminrole');
$table->string(‘type’);
$table->rememberToken();
$table->timestamps();
});
}