One Hat Cyber Team
Your IP :
3.135.198.159
Server IP :
web.dafriappsdev.com
Server :
Linux server3.shared.spaceship.host 4.18.0-372.9.1.1.lve.el8.x86_64 #1 SMP Tue May 24 07:49:22 EDT 2022 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
rlcugxuggt
/
api.dafriappsdev.com
/
app
/
Models
/
View File Name :
Category.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Category extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'title', 'slug', 'status', 'type', 'is_featured', 'lang', ]; public function postcategory() { return $this->belongsTo(Postcategory::class); } public function postcategories() { return $this->hasMany(Postcategory::class); } public function posts() { return $this->belongsToMany('App\Models\Post','postcategories','post_id','category_id'); } }