ldc-legaulois/app/Models/BlockList.php

29 lines
506 B
PHP
Raw Normal View History

2024-07-11 15:46:43 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BlockList extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<integer, string>
*/
protected $fillable = [
'customer_id', 'blocked_id'
];
// * RELATIONSHIPS
public function customer()
{
return $this->belongsTo(Customer::class);
}
public function blocked()
{
return $this->belongsTo(Customer::class, 'blocked_id');
}
}