Skip to content

Commit d7f9bd1

Browse files
committed
Merge pull request davzie#24 from ericnkatz/master
Update to Example Seeds to include app.name
2 parents 2f7053a + 5fce8fd commit d7f9bd1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Davzie/LaravelBootstrap/Seeds/DatabaseSeeder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class DatabaseSeeder extends Seeder {
88
public function run()
99
{
1010
Eloquent::unguard();
11-
$this->call('Davzie\LaravelBootstrap\Seeds\UserTable');
11+
$this->call('Davzie\LaravelBootstrap\Seeds\ExampleUserSeeder');
1212
$this->call('Davzie\LaravelBootstrap\Seeds\ExampleSettingsSeeder');
1313
$this->command->info('All Tables Seeded');
1414
}
1515

16-
}
16+
}

src/Davzie/LaravelBootstrap/Seeds/ExampleSettingsSeeder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Davzie\LaravelBootstrap\Seeds;
33
use Illuminate\Database\Seeder;
44
use Illuminate\Support\Facades\DB;
5+
use Illuminate\Support\Facades\Config;
56

67
class ExampleSettingsSeeder extends Seeder {
78

@@ -12,12 +13,12 @@ public function run()
1213
[
1314
'key' => 'application_name',
1415
'label' => 'Application Name',
15-
'value' => 'Laravel Bootstrap'
16+
'value' => Config::get('laravel-bootstrap::app.name')
1617
]
1718
];
1819
DB::table('settings')->insert($types);
1920
$this->command->info('Settings Table Seeded With An Example Record');
2021

2122
}
2223

23-
}
24+
}

src/Davzie/LaravelBootstrap/Seeds/UserTable.php renamed to src/Davzie/LaravelBootstrap/Seeds/ExampleUserSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Illuminate\Support\Facades\Config;
66
use Illuminate\Support\Facades\Hash;
77

8-
class UserTable extends Seeder {
8+
class ExampleUserSeeder extends Seeder {
99

1010
public function run()
1111
{

0 commit comments

Comments
 (0)