コード例 #1
0
ファイル: TestCase.php プロジェクト: spatie-custom/blender
 public function setUp()
 {
     parent::setUp();
     DatabaseSeeder::$withMedia = false;
     $this->artisan('migrate');
     $this->artisan('db:seed', ['--class' => 'ArticleSeeder']);
 }
コード例 #2
0
ファイル: DatabaseSeeder.php プロジェクト: bjrnblm/blender
 public function run()
 {
     parent::run();
     $this->call(FragmentSeeder::class);
     $this->call(UserSeeder::class);
     $this->call(TagSeeder::class);
     $this->call(ArticleSeeder::class);
     $this->call(PersonSeeder::class);
     $this->call(NewsItemSeeder::class);
 }
コード例 #3
0
 public function run()
 {
     parent::run();
     Cache::flush();
     $this->call(BackUserSeeder::class);
     $this->call(FrontUserSeeder::class);
     $this->call(FragmentSeeder::class);
     $this->call(TagSeeder::class);
     $this->call(ArticleSeeder::class);
     $this->call(PersonSeeder::class);
     $this->call(NewsItemSeeder::class);
 }