2015-11-16 21:21:48 +02:00
|
|
|
<?php namespace App\Models;
|
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
|
* Class OwnedByClientTrait
|
|
|
|
|
*/
|
2015-11-16 21:21:48 +02:00
|
|
|
trait OwnedByClientTrait
|
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
2015-11-16 21:21:48 +02:00
|
|
|
public function isClientTrashed()
|
|
|
|
|
{
|
|
|
|
|
if (!$this->client) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->client->trashed();
|
|
|
|
|
}
|
|
|
|
|
}
|