%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/app/Models/ |
Upload File : |
<?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');
}
}