One Hat Cyber Team
Your IP:
216.73.216.58
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
public_html
/
project
/
app
/
Models
/
Edit File:
Role.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Role extends Model { use HasFactory; protected $fillable = ['name','section','register_id','preloaded']; public $timestamps = false; public function admins() { return $this->hasMany('App\Models\Admin'); } public function sectionCheck($value) { $sections = explode(" , ", $this->section); if (in_array($value, $sections)){ return true; }else{ return false; } } }
Simpan