You've already forked Atomcms-edit
28 lines
597 B
PHP
Executable File
28 lines
597 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToUser;
|
|
use App\Models\Game\Permission;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class StaffApplication extends Model
|
|
{
|
|
use BelongsToUser;
|
|
|
|
#[\Override]
|
|
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'rank_id', 'status'];
|
|
|
|
#[\Override]
|
|
public $timestamps = true;
|
|
|
|
#[\Override]
|
|
protected $table = 'staff_applications';
|
|
|
|
public function rank(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Permission::class, 'rank_id');
|
|
}
|
|
}
|