Working on tests

This commit is contained in:
Hillel Coren 2016-06-07 17:55:52 +03:00
parent be11054b31
commit 7e1a0634f5

View File

@ -33,8 +33,10 @@ class EntityRequest extends Request {
$class = Utils::getEntityClass($this->entityType);
\Log::info('entity ' . $this->entityType . ' - ' . $publicId);
if (method_exists($class, 'withTrashed')) {
\Log::info('has withTrashed')
$this->entity = $class::scope($publicId)->withTrashed()->firstOrFail();
} else {
\Log::info('does not have withTrashed')
$this->entity = $class::scope($publicId)->firstOrFail();
}
\Log::info($this->entity);