seeders and navbar

This commit is contained in:
2018-10-27 23:22:24 -05:00
parent 9679866106
commit 5e9be02dd5
6 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
use Illuminate\Database\Seeder;
class ConfigTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('Config')->insert([
'RentalTax' => 15.00,
'AllyRentalTax' => 20.00,
'RefineRate' => 84.00,
'RentalTime' => 2592000,
]);
}
}

View File

@@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder
{
$this->call([
WikiTableSeeder::class,
ConfigTableSeeder::class,
]);
}
}

View File

@@ -14,14 +14,14 @@ SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `wiki_member` (
`uid` int(20) NOT NULL,
`gid` int(20) NOT NULL,
`gname` varchar(255) NOT NULL
`groupname` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `member`
--
INSERT INTO `wiki_member` (`uid`, `gid`, `gname`) VALUES
INSERT INTO `wiki_member` (`uid`, `gid`, `groupname`) VALUES
(2, 1, 'user'),
(2, 2, 'it'),
(2, 3, 'fc'),

View File

@@ -23,6 +23,7 @@
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdoownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Wiki</a>
<div class="dropdown-menu" aria-labelledby="navbarDropDownMenuLink">
<a class="dropdown-item" href="https://www.w4rp.space">Wiki</a>
<a class="dropdown-item" href="/wiki/register">Registration</a>
<a class="dropdown-item" href="/wiki/changepassword">Change Password</a>
</div>

View File

@@ -57,6 +57,7 @@ return array(
'Collective\\Html\\HtmlBuilder' => $vendorDir . '/laravelcollective/html/src/HtmlBuilder.php',
'Collective\\Html\\HtmlFacade' => $vendorDir . '/laravelcollective/html/src/HtmlFacade.php',
'Collective\\Html\\HtmlServiceProvider' => $vendorDir . '/laravelcollective/html/src/HtmlServiceProvider.php',
'ConfigTableSeeder' => $baseDir . '/database/seeds/ConfigTableSeeder.php',
'Cron\\AbstractField' => $vendorDir . '/dragonmantank/cron-expression/src/Cron/AbstractField.php',
'Cron\\CronExpression' => $vendorDir . '/dragonmantank/cron-expression/src/Cron/CronExpression.php',
'Cron\\DayOfMonthField' => $vendorDir . '/dragonmantank/cron-expression/src/Cron/DayOfMonthField.php',

View File

@@ -452,6 +452,7 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'Collective\\Html\\HtmlBuilder' => __DIR__ . '/..' . '/laravelcollective/html/src/HtmlBuilder.php',
'Collective\\Html\\HtmlFacade' => __DIR__ . '/..' . '/laravelcollective/html/src/HtmlFacade.php',
'Collective\\Html\\HtmlServiceProvider' => __DIR__ . '/..' . '/laravelcollective/html/src/HtmlServiceProvider.php',
'ConfigTableSeeder' => __DIR__ . '/../..' . '/database/seeds/ConfigTableSeeder.php',
'Cron\\AbstractField' => __DIR__ . '/..' . '/dragonmantank/cron-expression/src/Cron/AbstractField.php',
'Cron\\CronExpression' => __DIR__ . '/..' . '/dragonmantank/cron-expression/src/Cron/CronExpression.php',
'Cron\\DayOfMonthField' => __DIR__ . '/..' . '/dragonmantank/cron-expression/src/Cron/DayOfMonthField.php',