This repository has been archived on 2021-01-24. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
laravel-elearning/app/Question.php
2016-09-01 11:37:49 +02:00

20 lines
No EOL
308 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Question extends Model
{
protected $fillable = ["title"];
public function options()
{
return $this->hasMany(Option::class);
}
public function test()
{
return $this->belongsTo(Test::class);
}
}