:::

2-2 /app/Topic.php

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Topic extends Model
{
    protected $fillable = [
        'topic', 'exam_id', 'opt1', 'opt2', 'opt3', 'opt4', 'ans',
    ];

    public function exam()
    {
        return $this->belongsTo('App\Exam');
    }
}

 


:::

書籍目錄

展開 | 闔起

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1317%26tbsn%3D41

計數器

今天: 7783778377837783
昨天: 2489248924892489
總計: 8029765802976580297658029765802976580297658029765