whoami7 - Manager
:
/
home
/
dataiclx
/
datasyspk.com
/
app
/
Models
/
Upload File:
files >> /home/dataiclx/datasyspk.com/app/Models/SubCategory.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\SubCategory * * @property int $id * @property string $name * @property int $category_id * @property \Illuminate\Support\Carbon $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory newQuery() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory query() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory whereCategoryId($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SubCategory whereUpdatedAt($value) * @mixin \Eloquent */ class SubCategory extends Model { public function category() { return $this->belongsTo(Category::class); } public function products() { return $this->hasMany(Product::class); } public function subSubCategories() { return $this->hasMany(SubSubCategory::class); } }
Copyright ©2021 || Defacer Indonesia