| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsToMany;
- class Product extends Model
- {
- protected $fillable = [
- 'title',
- 'description',
- 'category',
- 'price',
- 'discount_percentage',
- 'rating',
- 'stock',
- 'brand',
- 'sku',
- 'weight',
- 'width',
- 'height',
- 'depth',
- 'warranty_information',
- 'shipment_information',
- 'availability_status',
- 'return_policy',
- 'minimum_order_quantity',
- 'barcode',
- 'qr_code',
- 'thumbnail',
- ];
- public function tags(): BelongsToMany
- {
- return $this->belongsToMany(Tag::class);
- }
- }
|