Vote.php 213 B

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