Generate multiple avatar sizes for better performance loading and frugal traffic

This commit is contained in:
Čarodej
2021-11-03 16:28:14 +01:00
parent dc8ec5f20b
commit f139dbae08
30 changed files with 280 additions and 152 deletions

View File

@@ -348,9 +348,11 @@ class VisitorManipulatingTest extends TestCase
'author' => 'visitor',
]);
$file = File::all()->last();
Storage::disk('local')
->assertExists(
"files/$user->id/fake-file.pdf"
"files/$user->id/$file->basename"
);
});
}