From edd57e1ca55a4c039fe6c33426a5a41f03b149de Mon Sep 17 00:00:00 2001 From: Leon Aves Date: Tue, 19 May 2020 00:52:28 +0100 Subject: [PATCH] Import correct Document class into HasLogo trait. (#3711) 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.