Skip to content

Commit

Permalink
feat(types): Types admin pagination
Browse files Browse the repository at this point in the history
see #418
  • Loading branch information
npthang committed Jun 8, 2017
1 parent e9073d0 commit e20e40f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions database/seeds/TypesTableSeeder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use App\Type;

class TypesTableSeeder extends Seeder
{
Expand All @@ -11,8 +13,12 @@ class TypesTableSeeder extends Seeder
*/
public function run()
{
DB::table('types')->insert([
'name' => 'Điện tử',
]);
$faker = Faker\Factory::create();
foreach(range(1,50) as $index)
{
Type::create([
'name' => $faker->name,
]);
}
}
}

0 comments on commit e20e40f

Please sign in to comment.