for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Helldar\Roles\Support\Database\BaseMigration;
use Illuminate\Database\Schema\Blueprint;
class ModifyRolesTableAddIsRootColumn extends BaseMigration
{
public function up()
$this->table($this->roles, function (Blueprint $table) {
$table->boolean('is_root')->default(false)->after('name');
});
}
public function down()
$table->dropColumn('is_root');