⚝
One Hat Cyber Team
⚝
Your IP:
18.219.240.215
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
rahulraj
/
public_html
/
core
/
app
/
Models
/
View File Name :
Admin.php
<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { protected $guard = 'admin'; protected $fillable = [ 'name', 'email', 'phone', 'role_id', 'photo', 'email_token', 'password' ]; protected $hidden = [ 'password', ]; public function role() { return $this->belongsTo('App\Models\Role')->withDefault(function ($data) { foreach($data->getFillable() as $dt){ $data[$dt] = __('Deleted'); } }); } public function IsSuper(){ if ($this->id == 1) { return true; } return false; } public function sectionCheck($value){ $sections = json_decode($this->role->section,true); if (in_array($value, $sections)){ return true; }else{ return false; } } }