/
home
/
old_henza
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/old_henza/server/app/Models/Collect.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Collect extends Model { use HasFactory; use SoftDeletes; //protected $connection = 'pgsql'; protected $table = 'category_collect'; protected $fillable=[ 'collection_id_id', 'product_id_id' ]; public function product() { return $this->belongsTo('App\Models\Product', 'product_id_id'); } public function collection() { return $this->belongsTo('App\Models\Category', 'collection_id_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure