w0bm.com v1.5z FULL.RETARD.BUILD.BUT.STILL.WORKS
This commit is contained in:
21
app/Models/UserFavorite.php
Normal file
21
app/Models/UserFavorite.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class UserFavorite extends User {
|
||||
|
||||
protected $table = 'users';
|
||||
|
||||
// Instead of uploaded Videos get favs
|
||||
public function videos() {
|
||||
return $this->favs();
|
||||
}
|
||||
|
||||
public function baseurl() {
|
||||
return 'user/' . $this->username . '/favs';
|
||||
}
|
||||
|
||||
public function displayName() {
|
||||
return 'Favorites (' . parent::displayName() . ')';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user