One Hat Cyber Team
Your IP :
18.217.244.16
Server IP :
104.21.16.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
gftag.com
/
app
/
Models
/
View File Name :
Subcategory.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Subcategory extends Model { protected $fillable = ['name', 'slug', 'category_id','status']; public $timestamps = false; public function category() { return $this->belongsTo('App\Models\Category')->withDefault(); } public function childcategory() { return $this->hasMany('App\Models\ChieldCategory')->where('status',1); } public function items() { return $this->hasMany('App\Models\Item')->where('status',1); } }