Skip to content

Commit 2b9a240

Browse files
authored
Move assets to resources from storage (#553)
* Move assets to resources * Apply PHP CS Fixer changes
1 parent b0b4b8f commit 2b9a240

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

app/Jobs/GenerateSocialShareImage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public function handle(ImageManager $image)
3535
$text = wordwrap($this->article->title(), self::CHARACTERS_PER_LINE);
3636

3737
return $image->cache(function ($image) use ($text) {
38-
$image->make(storage_path('images/' . self::TEMPLATE))
38+
$image->make(resource_path('images/' . self::TEMPLATE))
3939
->text($text, self::TEXT_X_POSITION, self::TEXT_Y_POSITION, function ($font) {
40-
$font->file(storage_path('fonts/' . self::FONT));
40+
$font->file(resource_path('fonts/' . self::FONT));
4141
$font->size(self::FONT_SIZE);
4242
$font->color(self::TEXT_COLOUR);
4343
});
File renamed without changes.

0 commit comments

Comments
 (0)