28 lines
506 B
PHP
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');
|
|
}
|
|
}
|