This commit is contained in:
Čarodej
2021-11-03 17:34:46 +01:00
parent 98823504ba
commit cdaad931bb
40 changed files with 69 additions and 112 deletions

View File

@@ -325,7 +325,7 @@ if (! function_exists('store_avatar')) {
function store_avatar($request, $name): ?string
{
// Check if file exist in http request
if (!$request->hasFile($name)) {
if (! $request->hasFile($name)) {
return null;
}
@@ -346,7 +346,6 @@ if (! function_exists('store_avatar')) {
// Generate avatar sizes
collect(config('vuefilemanager.avatar_sizes'))
->each(function ($size) use ($intervention, $avatar_name) {
// fit thumbnail
$intervention->fit($size['size'], $size['size'])->stream();