This commit is contained in:
Laucha1312
2026-06-04 15:00:21 -03:00
parent ed94601e34
commit 47408d49fc
76 changed files with 0 additions and 7737 deletions
-24
View File
@@ -1,24 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PushSubscription extends Model
{
protected $fillable = [
'id_usuario',
'tipo_usuario',
'endpoint',
'p256dh',
'auth',
];
/**
* Relación polimórfica manual (ya que no usamos el User estándar de Laravel siempre)
*/
public function scopeParaUsuario($query, $tipo, $id)
{
return $query->where('tipo_usuario', $tipo)->where('id_usuario', $id);
}
}