Skip to content

Instantly share code, notes, and snippets.

@andidp
Created August 9, 2016 07:06
Show Gist options
  • Save andidp/3175d52d3577fba78dfdf45588043f93 to your computer and use it in GitHub Desktop.
Save andidp/3175d52d3577fba78dfdf45588043f93 to your computer and use it in GitHub Desktop.
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Question extends Model
{
/**
* Get the answers for the blog post.
*/
public function answers()
{
return $this->hasMany('App\Answer');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment