Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24 from ericnkatz/master
Browse files Browse the repository at this point in the history
Update to Example Seeds to include app.name
  • Loading branch information
davzie committed Mar 1, 2014
2 parents 2f7053a + 5fce8fd commit d7f9bd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Davzie/LaravelBootstrap/Seeds/DatabaseSeeder.php
Expand Up @@ -8,9 +8,9 @@ class DatabaseSeeder extends Seeder {
public function run()
{
Eloquent::unguard();
$this->call('Davzie\LaravelBootstrap\Seeds\UserTable');
$this->call('Davzie\LaravelBootstrap\Seeds\ExampleUserSeeder');
$this->call('Davzie\LaravelBootstrap\Seeds\ExampleSettingsSeeder');
$this->command->info('All Tables Seeded');
}

}
}
5 changes: 3 additions & 2 deletions src/Davzie/LaravelBootstrap/Seeds/ExampleSettingsSeeder.php
Expand Up @@ -2,6 +2,7 @@
namespace Davzie\LaravelBootstrap\Seeds;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Config;

class ExampleSettingsSeeder extends Seeder {

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

}

}
}
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Hash;

class UserTable extends Seeder {
class ExampleUserSeeder extends Seeder {

public function run()
{
Expand Down

0 comments on commit d7f9bd1

Please sign in to comment.