ldc-legaulois/app/Models/BlockList.php
Jérémy Munsch 920a0167c7
Deps working
2024-07-11 15:46:43 +02:00

28 lines
506 B
PHP

<?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');
}
}