1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-16 07:02:31 +01:00
flox/server/database/seeds/DatabaseSeeder.php
2015-07-28 20:50:39 +02:00

25 lines
426 B
PHP

<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->call(CategoryTableSeeder::class);
foreach(range(1,20) as $i) {
$this->call(ItemTableSeeder::class);
}
Model::reguard();
}
}