<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class ProductsImage extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $table = 'products_image';
    protected $primaryKey = 'products_image_id';
    protected $fillable = [
        'product_id',
        'banner_name',
        'banner_image',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at',
        'deleted_at'
    ];

    // public function productsdet() {
    //     return $this->hasMany('App\Models\Products', 'product_id', 'product_id')->where('active_status',1)->orderBy('product_id', 'desc');
    // }
}
