Your IP : 3.149.242.223
<?php
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\Course;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
// \App\Models\User::factory()->create([
// 'name' => 'Test User',
// 'email' => 'test@example.com',
// ]);
// Course::factory(10)->create([
// 'category_id'=>rand(1,3),
// 'topic_id'=>rand(1,3),
// 'user_id'=>rand(1,3),
// 'title'=>fake()->sentence(6),
// 'subtitle'=>fake()->sentence(6),
// 'description'=>fake()->sentence(6),
// 'language'=>fake()->languageCode(),
// 'level'=>rand(1,3),
// 'course_type'=>rand(1,3),
// ]);
}
}