Commit 78576625 authored by mengyixi's avatar mengyixi

修改错误

parent d4b86e79
...@@ -77,6 +77,7 @@ class AdminService implements AdminServiceContract ...@@ -77,6 +77,7 @@ class AdminService implements AdminServiceContract
$admin->name = $name; $admin->name = $name;
$admin->email = $email; $admin->email = $email;
$admin->update(); $admin->update();
if ($admin) { if ($admin) {
$roles = RoleAdmin::where('admin_id', $id)->get(); $roles = RoleAdmin::where('admin_id', $id)->get();
if ($role != null) { if ($role != null) {
......
...@@ -29,7 +29,7 @@ class EntrustSetupTables extends Migration ...@@ -29,7 +29,7 @@ class EntrustSetupTables extends Migration
->onUpdate('cascade')->onDelete('cascade'); ->onUpdate('cascade')->onDelete('cascade');
$table->foreign('role_id')->references('id')->on('roles') $table->foreign('role_id')->references('id')->on('roles')
->onUpdate('cascade')->onDelete('cascade'); ->onUpdate('cascade')->onDelete('cascade');
$table->increments("id"); //$table->increments("id");
$table->primary(['admin_id', 'role_id']); $table->primary(['admin_id', 'role_id']);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment