feat: 优化权限模块

This commit is contained in:
JaguarJack
2023-04-17 16:47:34 +08:00
parent a574b85a09
commit c7c8500041
3 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::table('permissions', function (Blueprint $table) {
$table->string('icon')->default('')->change();
$table->string('component')->default('')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
}
};