ldc-crm/app/Models/CustomerInfos.php
Romain Bonhomme 328e38ce38 Init
2020-12-01 17:02:10 +01:00

21 lines
439 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CustomerInfos extends Model
{
use HasFactory;
protected $table = "customer_infos";
public function customer() {
return $this->belongsTo('App\Models\Customer', 'customer_id');
}
public function brand() {
return $this->belongsTo('App\Models\Brand', 'brand_id');
}
}