One Hat Cyber Team
Your IP :
13.58.164.55
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
public_html
/
centosuit
/
app
/
Models
/
View File Name :
ProductSubCategory.php
<?php namespace App\Models; use App\Traits\HasCompany; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * App\Models\ProductSubCategory * * @property int $id * @property int $category_id * @property string $category_name * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\ProductCategory $category * @property-read mixed $icon * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory query() * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereCategoryId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereCategoryName($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereUpdatedAt($value) * @property int|null $company_id * @property-read \App\Models\Company|null $company * @method static \Illuminate\Database\Eloquent\Builder|ProductSubCategory whereCompanyId($value) * @mixin \Eloquent */ class ProductSubCategory extends BaseModel { use HasCompany; protected $table = 'product_sub_category'; public function category(): BelongsTo { return $this->belongsTo(ProductCategory::class, 'category_id'); } }