/**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('pages', function ($table) {
         $table->dropColumn('disable_delete');
     });
     Role::where('name', '=', 'p_edit_disable_delete')->delete();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('page_acl');
     Schema::table('pages', function (Blueprint $table) {
         $table->dropColumn(Page::ATTR_ENABLE_ACL);
     });
     Role::where('name', 'editAcl')->delete();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Role::create(['name' => 'editDeletable', 'description' => 'Edit whether a page can be deleted']);
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Role::where('name', '=', 'manage_settings')->delete();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Role::where('name', '=', 'edit')->update(['name' => 'editContent', 'description' => 'Edit page - content']);
     Role::where('name', '=', 'toolbar')->update(['name' => 'edit', 'description' => 'Page - edit']);
 }
Beispiel #6
0
 public function edit()
 {
     return view("{$this->viewPrefix}.edit", ['group' => $this->group, 'general_roles' => Role::getGeneralRoles(), 'page_roles' => Role::getPageRoles()]);
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('sites');
     Schema::drop('asset_site');
     Schema::drop('person_site');
     Schema::table('pages', function (Blueprint $table) {
         $table->dropColumn(Page::ATTR_SITE);
     });
     Schema::table('groups', function (Blueprint $table) {
         $table->dropColumn(Group::ATTR_SITE);
     });
     Schema::table('tags', function (Blueprint $table) {
         $table->dropColumn(Group::ATTR_SITE);
     });
     Schema::table('page_urls', function (Blueprint $table) {
         $table->dropColumn(Page::ATTR_SITE);
         $table->dropUnique('page_urls_site_id_location');
     });
     Role::where('name', '=', 'manageSites')->delete();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Role::where('name', 'uploadAssets')->delete();
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Role::where('name', 'manageApprovals')->delete();
 }