Skip to content

Commit 6c40ce6

Browse files
committed
setup seeder.
1 parent ce0a7f6 commit 6c40ce6

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

app/config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
'Response' => 'Illuminate\Support\Facades\Response',
168168
'Route' => 'Illuminate\Support\Facades\Route',
169169
'Schema' => 'Illuminate\Support\Facades\Schema',
170+
'Seeder' => 'Illuminate\Database\Seeder',
170171
'Session' => 'Illuminate\Support\Facades\Session',
171172
'URL' => 'Illuminate\Support\Facades\URL',
172173
'Validator' => 'Illuminate\Support\Facades\Validator',

app/database/seeds/DatabaseSeeder.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
class DatabaseSeeder extends Seeder {
4+
5+
/**
6+
* Run the database seeds.
7+
*
8+
* @return void
9+
*/
10+
public function run()
11+
{
12+
// $this->call('UserTableSeeder');
13+
}
14+
15+
}

app/start/global.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
app_path().'/controllers',
1717
app_path().'/models',
18+
app_path().'/database/seeds',
1819

1920
));
2021

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"app/controllers",
99
"app/models",
1010
"app/database/migrations",
11+
"app/database/seeds",
1112
"app/tests/TestCase.php"
1213
]
1314
},

0 commit comments

Comments
 (0)