]> _ Git - psq.git/commitdiff
PDF Unix
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 21:36:21 +0000 (23:36 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 21:36:21 +0000 (23:36 +0200)
app/PdfFile.php
app/SearchableText.php

index ac9c4a7fe892bfe9393540b083dccc9ce77e360c..69fb18ef44a25170be0025919c3fb32dbe9142ab 100644 (file)
@@ -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
index d5439e2d61570a5eb699d66573cf3a8b0ea1368f..30b07a6b232a705a014194250d890095ab4497ad 100644 (file)
@@ -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,