pollthingy/app/PollOption.php

18 lines
253 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PollOption extends Model
{
public $timestamps = false;
protected $fillable = ['text'];
public function poll()
{
return $this->belongsTo('App\Poll');
}
}