updates
This commit is contained in:
13
app/models/Vote.php
Normal file
13
app/models/Vote.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class Vote extends Eloquent {
|
||||
protected $table = "votes";
|
||||
|
||||
public function film() {
|
||||
return $this->belongsTo('Film', 'film');
|
||||
}
|
||||
|
||||
public function user() {
|
||||
return $this->belongsTo('User', 'user');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user