One Hat Cyber Team
Your IP :
3.15.239.31
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
smhtechlabs.com
/
shop
/
core
/
app
/
Edit File:
Product.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $guarded = ['id']; protected $casts = [ 'tag' => 'array', 'category_details' => 'array', 'screenshot' => 'array' ]; public function category() { return $this->belongsTo(Category::class); } public function subcategory() { return $this->belongsTo(SubCategory::class,'sub_category_id'); } public function user() { return $this->belongsTo(User::class); } public function comments() { return $this->hasMany(Comment::class); } public function sells() { return $this->hasMany(Sell::class); } public function orders() { return $this->hasMany(Order::class); } public function ratings() { return $this->hasMany(Rating::class); } }
Simpan