:::

5-6 /database/seeds/TopicsTableSeeder.php

<?php

use Illuminate\Database\Seeder;

class TopicsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(App\Topic::class, 50)->create(['exam_id' => 1]);
    }
}

 


:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D41%26tbdsn%3D1321

計數器

今天: 1189118911891189
昨天: 4125412541254125
總計: 5553199555319955531995553199555319955531995553199