updates
This commit is contained in:
@@ -49,4 +49,16 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
|
||||
public function films() {
|
||||
return $this->hasMany('Film', 'user');
|
||||
}
|
||||
|
||||
public function comments() {
|
||||
return $this->hasMany('Comment', 'user');
|
||||
}
|
||||
|
||||
public function votes() {
|
||||
return $this->hasMany('Vote', 'user');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user