Comment.php 220 B

12345678910111213
  1. <?php
  2. class Comment extends Eloquent {
  3. protected $table = "comments";
  4. public function autor() {
  5. return $this->belongsTo('User', 'user');
  6. }
  7. public function film() {
  8. return $this->belongsTo('Film', 'film');
  9. }
  10. }