You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace App\Models\Game;
|
||||
|
||||
use App\Models\Compositions\HasBadge;
|
||||
use App\Models\StaffApplication;
|
||||
use App\Models\Community\Staff\WebsiteStaffApplications;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
@@ -16,19 +16,25 @@ class Permission extends Model implements HasBadge
|
||||
|
||||
protected $guarded = ['id', 'rank_name'];
|
||||
|
||||
/**
|
||||
* @return HasMany<User, $this>
|
||||
*/
|
||||
public function users(): HasMany
|
||||
{
|
||||
return $this->hasMany(User::class, 'rank', 'id');
|
||||
}
|
||||
|
||||
public function roles(): HasMany
|
||||
{
|
||||
return $this->hasMany(PermissionRole::class);
|
||||
}
|
||||
// public function roles(): HasMany
|
||||
// {
|
||||
// return $this->hasMany(PermissionRole::class);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @return HasMany<WebsiteStaffApplications, $this>
|
||||
*/
|
||||
public function staffApplications(): HasMany
|
||||
{
|
||||
return $this->hasMany(StaffApplication::class, 'rank_id');
|
||||
return $this->hasMany(WebsiteStaffApplications::class, 'rank_id');
|
||||
}
|
||||
|
||||
public function getBadgePath(): string
|
||||
|
||||
Reference in New Issue
Block a user