From 7e1a0634f5efa17ef9d7aa474a48d81efa83ce99 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 7 Jun 2016 17:55:52 +0300 Subject: [PATCH] Working on tests --- app/Http/Requests/EntityRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Requests/EntityRequest.php b/app/Http/Requests/EntityRequest.php index 87a877e4eae3..d379578c41eb 100644 --- a/app/Http/Requests/EntityRequest.php +++ b/app/Http/Requests/EntityRequest.php @@ -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);