Add API code field to admin groups

This commit is contained in:
Samuel Georges 2014-12-16 13:47:18 +11:00
parent 5d6b634ded
commit 470f876fff
3 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,7 @@ class DbBackendAddDescriptionField extends Migration
public function up()
{
Schema::table('backend_user_groups', function (Blueprint $table) {
$table->string('code')->index();
$table->text('description')->nullable();
$table->boolean('is_new_user_default')->default(false);
});
@ -16,6 +17,7 @@ class DbBackendAddDescriptionField extends Migration
public function down()
{
Schema::table('backend_user_groups', function (Blueprint $table) {
$table->dropColumn('code');
$table->dropColumn('description');
$table->dropColumn('is_new_user_default');
});

View File

@ -99,6 +99,8 @@ return [
'name_field' => 'Name',
'description_field' => 'Description',
'is_new_user_default_field' => 'Add new administrators to this group by default',
'code_field' => 'Code',
'code_comment' => 'Enter a unique code if you want to access it with the API.',
'menu_label' => 'Groups',
'list_title' => 'Manage Groups',
'new' => 'New Administrator Group',

View File

@ -6,6 +6,12 @@ fields:
name:
label: backend::lang.user.group.name_field
span: auto
code:
label: backend::lang.user.group.code_field
comment: backend::lang.user.group.code_comment
span: auto
description:
label: backend::lang.user.group.description_field