You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
521 B
PHP
27 lines
521 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use App\Models\BlogPost;
|
|
use App\Models\Photo;
|
|
use App\Models\Tag;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$this->call([
|
|
TagSeeder::class,
|
|
BlogPostSeeder::class,
|
|
]);
|
|
|
|
// todo: remove when finished testing
|
|
Photo::factory(50)->create();
|
|
}
|
|
}
|