Files
Juan Felipe Duarte a558e393f2 Add rank management feature with CRUD and UI
Introduces a new rank management system including the Rank model, migrations for the ranks table and user IP address, Livewire components for managing and displaying ranks, and related Blade views. Updates navigation and routes to include the new 'Gestión Rangos' section, and enhances the ShareCodeComponent with user data. Also adds a reusable input field component for forms.
2025-10-23 20:28:47 -05:00

30 lines
560 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Rank extends Model
{
use HasFactory;
protected $fillable = [
'nombre',
'cashback',
'bono_equipo',
'tope_bono_equipo',
'compra_personal_min',
'directos_activos_min',
'niveles_min',
'volumen_equipo_min',
'volumen_por_nivel_min',
'logo'
];
public function users()
{
return $this->hasMany(User::class, 'rank_id');
}
}