source:
database/seeds/PostsTableSeeder.php@
d25ba66
| Last change on this file since d25ba66 was 0924b6c, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 250 bytes | |
| Rev | Line | |
|---|---|---|
| [0924b6c] | 1 | <?php |
| 2 | ||
| 3 | use Illuminate\Database\Seeder; | |
| 4 | ||
| 5 | class PostsTableSeeder extends Seeder | |
| 6 | { | |
| 7 | /** | |
| 8 | * Run the database seeds. | |
| 9 | * | |
| 10 | * @return void | |
| 11 | */ | |
| 12 | public function run() | |
| 13 | { | |
| 14 | factory(App\Models\Post::class, 100)->create(); | |
| 15 | } | |
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/projects/technoblog/chrome/../raw-attachment/wiki/WikiStart/logo.png)