Nuevos cambios hechos de diseño

This commit is contained in:
ellecio2
2023-08-23 17:33:44 -04:00
parent 7a806f84ff
commit d2e9ba53ab
3485 changed files with 691106 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?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);
}
}