One Hat Cyber Team
Your IP :
3.133.128.168
Server IP :
104.21.48.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 :
ChieldCategory.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ChieldCategory extends Model { protected $fillable = ['name','slug','status','category_id','subcategory_id']; public $timestamps = false; public function category() { return $this->belongsTo('App\Models\Category')->withDefault(); } public function subcategory() { return $this->belongsTo('App\Models\Subcategory')->withDefault(); } public function items() { return $this->hasMany('App\Models\Item','childcategory_id')->where('status',1); } }