From: Louis Jeckel Date: Tue, 8 Sep 2020 21:36:21 +0000 (+0200) Subject: PDF Unix X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eb64aef98594f0747d7ffaa5bb8a0fe40bd6634f;p=psq.git PDF Unix --- diff --git a/app/PdfFile.php b/app/PdfFile.php index ac9c4a7..69fb18e 100644 --- a/app/PdfFile.php +++ b/app/PdfFile.php @@ -7,6 +7,7 @@ use A17\Twill\Models\Behaviors\HasSlug; use A17\Twill\Models\Behaviors\Sortable; use A17\Twill\Models\Model as TwillModel; use App\Flowpaper\Pdf2Json; +use Carbon\Carbon; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; @@ -29,6 +30,8 @@ use Vaites\ApacheTika\Client as TikaClient; * @property EmailBatch $emailBatch * @property TrackedLink $trackedLinks * @property mixed $tags + * @property Carbon $created_at + * @property Carbon $updated_at * @property string $ref * @property string $slug * @property string $absolutePdfPath diff --git a/app/SearchableText.php b/app/SearchableText.php index d5439e2..30b07a6 100644 --- a/app/SearchableText.php +++ b/app/SearchableText.php @@ -28,6 +28,7 @@ class SearchableText extends Model 'collection' => (string) $this->file->collection, 'ref' => $this->file->ref, 'cover' => $this->file->coverUrl, + 'created_at' => $this->file->created_at->format('U'), ], 'content' => $this->content, 'page' => $this->page,