AnonSec Team
Server IP : 103.11.96.170  /  Your IP : 18.218.146.21
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
User : elibrary.unsap.ac.id ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  D:/localhost/dev_admission/app/Models/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : D:/localhost/dev_admission/app/Models/Quiz.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Quiz extends Model
{
    use HasFactory;
    
    protected $table = 'quiz';
    protected $fillable = ['nama', 'status', 'guru_id'];

    public function soal()
    {
        return $this->hasMany(Soal::class);
    }

    public function murid()
    {
        return $this->belongsToMany(Neomahasiswa::class, 'quiz_murid', 'quiz_id', 'id');
    }

  /*   public function guru()
    {
        return $this->belongsTo(User::class, 'guru_id');;
    } */ 
}

AnonSec - 2021