⚝
One Hat Cyber Team
⚝
Your IP:
160.79.110.251
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
home
/
tech
/
public_html
/
script
/
app
/
Edit File: Category.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Category extends Model { protected $table="categories"; public function posts() { return $this->belongsToMany('App\Terms','post_category','category_id','term_id'); } public function categories() { return $this->hasMany(Category::class,'p_id','id'); } public function childrenCategories() { return $this->hasMany(Category::class,'p_id','id')->with('categories'); } public function portfolio() { return $this->hasMany('App\PostCategory')->with('portfolio'); } }
Simpan