From 9d2c0ea03b18bb815a486397d8e03043d5e1c68a Mon Sep 17 00:00:00 2001 From: Leon Aves Date: Tue, 19 May 2020 12:28:36 +0100 Subject: [PATCH] Import correct Document class into HasLogo trait. (#3717) If you aren't using the local driver for logo storage, the attempts to use Document::getDirectFileUrl in this file will fail as it tries to autoload from Traits, Document needs to be explicitly imported. --- app/Models/Traits/HasLogo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Traits/HasLogo.php b/app/Models/Traits/HasLogo.php index 1feb8c0a3d87..73423b0fc522 100644 --- a/app/Models/Traits/HasLogo.php +++ b/app/Models/Traits/HasLogo.php @@ -4,6 +4,7 @@ namespace App\Models\Traits; use Utils; use Illuminate\Support\Facades\Storage; +use App\Models\Document; /** * Class HasLogo.