@@ -59,7 +59,6 @@ class UserController extends Controller
}
$roles = pairList($this->_getRoles(), 'id', 'name');
- dd($list);
return view('admin.base.user.index', compact('list', 'roles'));
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+class AddIsRootToAdminRole extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('admin_role', function (Blueprint $table) {
+ //
+ $table->unsignedInteger('is_root')->nullable()->default(0);
+ });
+ }
+ * Reverse the migrations.
+ public function down()
+}
@@ -57,6 +57,18 @@
</label>
</div>
+ <div class="form-group">
+ <label class="control-label col-sm-3">非root用户是否可见</label>
+ <div class="col-sm-9">
+ <label class="radio-inline">
+ <input type="radio" name="info[is_root]" value="0" <?php if(isset($data['is_root']) && $data['is_root'] == 0){ echo ' checked="checked"'; } ?>>是
+ </label>
+ <input type="radio" name="info[is_root]" value="1" <?php if(isset($data['is_root']) && $data['is_root'] == 1){ echo ' checked="checked"'; } ?>>否
+ </div>
<div class="form-group">
<label class="control-label col-sm-3"> </label>