filament create&edit redirect

This commit is contained in:
xiaomlove
2022-12-01 00:45:22 +08:00
parent 058bb995c1
commit fe6564dd7e
19 changed files with 63 additions and 111 deletions
+8
View File
@@ -4,6 +4,7 @@ namespace Nexus\Install;
use App\Models\Setting;
use App\Models\User;
use App\Repositories\SearchBoxRepository;
use App\Repositories\UserRepository;
use Illuminate\Support\Str;
use Nexus\Database\NexusDB;
@@ -711,4 +712,11 @@ class Install
return $this->steps[$step - 1] ?? '';
}
public function migrateSearchBoxModeRelated()
{
$this->doLog("[migrateSearchBoxModeRelated]");
$searchBoxRep = new SearchBoxRepository();
$searchBoxRep->migrateToModeRelated();
}
}
+1 -2
View File
@@ -276,8 +276,7 @@ class Update extends Install
$this->runMigrate('database/migrations/2022_09_05_230532_add_mode_to_section_related.php');
$this->runMigrate('database/migrations/2022_09_06_004318_add_section_name_to_searchbox_table.php');
$this->runMigrate('database/migrations/2022_09_06_030324_change_searchbox_field_extra_to_json.php');
$searchBoxRep = new SearchBoxRepository();
$searchBoxRep->migrateToModeRelated();
$this->migrateSearchBoxModeRelated();
$this->doLog("[MIGRATE_TAXONOMY_TO_MODE_RELATED]");
}
$this->removeMenu(['catmanage.php']);
+1
View File
@@ -111,6 +111,7 @@ if ($currentStep == 4) {
$install->createSymbolicLinks($symbolicLinks);
$install->runDatabaseSeeder();
$install->saveSettings($settings);
$install->migrateSearchBoxModeRelated();
$install->nextStep();
} catch (\Exception $e) {
$error = $e->getMessage();