:::

1-3 app/Exam

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Exam extends Model
{
    protected $fillable = [
        'title', 'user_id', 'enable',
    ];

    public function topics()
    {
        return $this->hasMany('App\Topic');
    }

    public function tests()
    {
        return $this->hasMany('App\Test');
    }
}

 


:::

書籍目錄

展開 | 闔起

http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D40%26tbdsn%3D1292

計數器

今天: 1343134313431343
昨天: 2138213821382138
總計: 7322625732262573226257322625732262573226257322625