<?php
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class AdminNotification extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $casts = [
'message' => 'object',
];
protected $with = [
'admin',
];
public function admin() {
return $this->belongsTo(Admin::class);
}
public function scopeGetByType($query,$types) {
if(is_array($types)) return $query->whereIn('type',$types);
}
public function scopeNotAuth($query) {
$query->where("admin_id","!=",auth()->user()->id);
}
}
Contact Section
We’d love to hear from you! Whether you have questions, feedback, or need support, our team is here to help. Reach out to us via email, phone, or visit our office. We’re committed to providing you with exceptional service and ensuring your experience with NFC Pay is seamless and satisfying. Let’s connect!