ldc-legaulois/app/Models/BlockList.php
Alexis Gousseau 9d452b5659 chore: ⬆️ bump crm to V4
2024-09-13 15:41:25 +02:00

40 lines
827 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
/**
* Summary of customer
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function customer(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Customer::class);
}
/**
*
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function blocked(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Customer::class, 'blocked_id');
}
}