File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
src/Davzie/LaravelBootstrap/Seeds Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ class DatabaseSeeder extends Seeder {
8
8
public function run ()
9
9
{
10
10
Eloquent::unguard ();
11
- $ this ->call ('Davzie\LaravelBootstrap\Seeds\UserTable ' );
11
+ $ this ->call ('Davzie\LaravelBootstrap\Seeds\ExampleUserSeeder ' );
12
12
$ this ->call ('Davzie\LaravelBootstrap\Seeds\ExampleSettingsSeeder ' );
13
13
$ this ->command ->info ('All Tables Seeded ' );
14
14
}
15
15
16
- }
16
+ }
Original file line number Diff line number Diff line change 2
2
namespace Davzie \LaravelBootstrap \Seeds ;
3
3
use Illuminate \Database \Seeder ;
4
4
use Illuminate \Support \Facades \DB ;
5
+ use Illuminate \Support \Facades \Config ;
5
6
6
7
class ExampleSettingsSeeder extends Seeder {
7
8
@@ -12,12 +13,12 @@ public function run()
12
13
[
13
14
'key ' => 'application_name ' ,
14
15
'label ' => 'Application Name ' ,
15
- 'value ' => ' Laravel Bootstrap '
16
+ 'value ' => Config:: get ( ' laravel-bootstrap::app.name ' )
16
17
]
17
18
];
18
19
DB ::table ('settings ' )->insert ($ types );
19
20
$ this ->command ->info ('Settings Table Seeded With An Example Record ' );
20
21
21
22
}
22
23
23
- }
24
+ }
Original file line number Diff line number Diff line change 5
5
use Illuminate \Support \Facades \Config ;
6
6
use Illuminate \Support \Facades \Hash ;
7
7
8
- class UserTable extends Seeder {
8
+ class ExampleUserSeeder extends Seeder {
9
9
10
10
public function run ()
11
11
{
You can’t perform that action at this time.
0 commit comments