/
home
/
sditechnicalteam
/
public_html
/
app
/
Models
/
File Upload :
llllll
Current File: /home/sditechnicalteam/public_html/app/Models/ProductCategory.php
<?php namespace App\Models; use App\Traits\HasCompany; use Illuminate\Database\Eloquent\Relations\HasMany; /** * App\Models\ProductCategory * * @property int $id * @property string $category_name * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read mixed $icon * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory query() * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory whereCategoryName($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory whereUpdatedAt($value) * @mixin \Eloquent * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\ProductSubCategory[] $subCategories * @property-read int|null $sub_categories_count * @property int|null $company_id * @property-read \App\Models\Company|null $company * @method static \Illuminate\Database\Eloquent\Builder|ProductCategory whereCompanyId($value) */ class ProductCategory extends BaseModel { use HasCompany; protected $table = 'product_category'; public function subCategories(): HasMany { return $this->hasMany(ProductSubCategory::class, 'category_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure