2021-03-10 18:58:40 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class BlockList extends Model
|
|
|
|
|
{
|
2021-03-20 14:38:15 +01:00
|
|
|
|
2021-03-10 18:58:40 +01:00
|
|
|
protected $fillable = [
|
|
|
|
|
'customer_id','blocked_id'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function customer()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Customers::class);
|
|
|
|
|
}
|
|
|
|
|
public function blocked()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Customers::class, 'blocked_id');
|
|
|
|
|
}
|
|
|
|
|
}
|