Commit 2ed9d314 by Bagus Pambudi

migrasi settings

parent bff3f11a
...@@ -13,15 +13,15 @@ class CreateSettingsTable extends Migration ...@@ -13,15 +13,15 @@ class CreateSettingsTable extends Migration
*/ */
public function up() public function up()
{ {
// Schema::create('swp_settings', function (Blueprint $table) { Schema::create('swp_settings', function (Blueprint $table) {
// $table->string('id', 36)->primary(); $table->string('id', 36)->primary();
// $table->string('show_name_setting'); $table->string('show_name_setting');
// $table->string('name_setting'); $table->string('name_setting');
// $table->string('value_setting'); $table->string('value_setting');
// $table->string('userid_created', 36)->nullable(); $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable(); $table->string('userid_updated', 36)->nullable();
// $table->timestamps(); $table->timestamps();
// }); });
} }
/** /**
......
...@@ -10,37 +10,37 @@ class SettingsTableSeeder extends Seeder ...@@ -10,37 +10,37 @@ class SettingsTableSeeder extends Seeder
public function run() public function run()
{ {
// Post per page // Post per page
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'POST PER PAGE', 'show_name_setting' => 'POST PER PAGE',
// 'name_setting' => 'post_per_page', 'name_setting' => 'post_per_page',
// 'value_setting' => '6', 'value_setting' => '6',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// Email // Email
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'EMAIL', 'show_name_setting' => 'EMAIL',
// 'name_setting' => 'email', 'name_setting' => 'email',
// 'value_setting' => 'ppti@unesa.ac.id', 'value_setting' => 'ppti@unesa.ac.id',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// HEADER // HEADER
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'HEADER', 'show_name_setting' => 'HEADER',
// 'name_setting' => 'header_admin', 'name_setting' => 'header_admin',
// 'value_setting' => 'Master', 'value_setting' => 'Master',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// DIRECTORY STORAGE // DIRECTORY STORAGE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'DIRECTORY STORAGE', 'show_name_setting' => 'DIRECTORY STORAGE',
'name_setting' => 'directory', 'name_setting' => 'directory',
...@@ -50,47 +50,47 @@ class SettingsTableSeeder extends Seeder ...@@ -50,47 +50,47 @@ class SettingsTableSeeder extends Seeder
]); ]);
// WEB TITILE // WEB TITILE
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'WEB TITILE', 'show_name_setting' => 'WEB TITILE',
// 'name_setting' => 'web_title', 'name_setting' => 'web_title',
// 'value_setting' => 'NEW WPSS | PPTI Universitas Negeri Surabaya', 'value_setting' => 'NEW WPSS | PPTI Universitas Negeri Surabaya',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// LOGO // LOGO
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'LOGO', 'show_name_setting' => 'LOGO',
// 'name_setting' => 'logo', 'name_setting' => 'logo',
// 'value_setting' => 'https://unesa.ac.id/assets/switcher/images/logo.png', 'value_setting' => 'https://unesa.ac.id/assets/switcher/images/logo.png',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// STYLE // STYLE
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'STYLE', 'show_name_setting' => 'STYLE',
// 'name_setting' => 'style', 'name_setting' => 'style',
// 'value_setting' => 'style-wpss.css', 'value_setting' => 'style-wpss.css',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// ONE PAGE? // ONE PAGE?
// DB::table('swp_settings')->insert([ DB::table('swp_settings')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'show_name_setting' => 'ONE PAGE?', 'show_name_setting' => 'ONE PAGE?',
// 'name_setting' => 'onepage', 'name_setting' => 'onepage',
// 'value_setting' => '1', 'value_setting' => '1',
// 'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
// 'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
// ]); ]);
// EKSTERNAL STORAGE // EKSTERNAL STORAGE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'EKSTERNAL STORAGE', 'show_name_setting' => 'EKSTERNAL STORAGE',
'name_setting' => 'external_storage', 'name_setting' => 'external_storage',
...@@ -100,7 +100,7 @@ class SettingsTableSeeder extends Seeder ...@@ -100,7 +100,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// URL STORAGE // URL STORAGE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'URL STORAGE', 'show_name_setting' => 'URL STORAGE',
'name_setting' => 'url_static', 'name_setting' => 'url_static',
...@@ -110,7 +110,7 @@ class SettingsTableSeeder extends Seeder ...@@ -110,7 +110,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// AUTO TRANSLATE // AUTO TRANSLATE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'AUTO TRANSLATE', 'show_name_setting' => 'AUTO TRANSLATE',
'name_setting' => 'auto_translate', 'name_setting' => 'auto_translate',
...@@ -120,7 +120,7 @@ class SettingsTableSeeder extends Seeder ...@@ -120,7 +120,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// THEME // THEME
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'THEME', 'show_name_setting' => 'THEME',
'name_setting' => 'theme', 'name_setting' => 'theme',
...@@ -130,7 +130,7 @@ class SettingsTableSeeder extends Seeder ...@@ -130,7 +130,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// LANGUAGE // LANGUAGE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'LANGUAGE', 'show_name_setting' => 'LANGUAGE',
'name_setting' => 'default_language', 'name_setting' => 'default_language',
...@@ -140,7 +140,7 @@ class SettingsTableSeeder extends Seeder ...@@ -140,7 +140,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// KEYWORD // KEYWORD
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'KEYWORD', 'show_name_setting' => 'KEYWORD',
'name_setting' => 'default_keyword', 'name_setting' => 'default_keyword',
...@@ -150,7 +150,7 @@ class SettingsTableSeeder extends Seeder ...@@ -150,7 +150,7 @@ class SettingsTableSeeder extends Seeder
]); ]);
// LANGUAGE // LANGUAGE
DB::table('swp_setting')->insert([ DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
'show_name_setting' => 'TEAM', 'show_name_setting' => 'TEAM',
'name_setting' => 'team', 'name_setting' => 'team',
......
...@@ -14,15 +14,15 @@ class UsersTableSeeder extends Seeder ...@@ -14,15 +14,15 @@ class UsersTableSeeder extends Seeder
*/ */
public function run() public function run()
{ {
// DB::table('users')->insert([ DB::table('users')->insert([
// 'id' => Str::uuid()->toString(), 'id' => Str::uuid()->toString(),
// 'name' => 'Aan Choesni Herlingga', 'name' => 'Aan Choesni Herlingga',
// 'email' => 'aanchoesni@unesa.ac.id', 'email' => 'aanchoesni@unesa.ac.id',
// 'email_verified_at' => null, 'email_verified_at' => null,
// 'password' => Hash::make('anchuz2020'), 'password' => Hash::make('anchuz2020'),
// 'remember_token' => null, 'remember_token' => null,
// 'role' => 'admin', 'role' => 'admin',
// 'is_active' => 1, 'is_active' => 1,
// ]); ]);
} }
} }
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