diff --git a/app/Http/Controllers/Community/MyCzqoController.php b/app/Http/Controllers/Community/MyCzqoController.php index e15edc64..8badef89 100644 --- a/app/Http/Controllers/Community/MyCzqoController.php +++ b/app/Http/Controllers/Community/MyCzqoController.php @@ -150,10 +150,10 @@ public function changeAvatarCustomImage(Request $request) $user = Auth::user(); //Put it onto disk - $path = Storage::disk('digitalocean')->put('user_uploads/'.$user->id.'/avatars', $request->file('file'), 'public'); + $path = Storage::put('user_uploads/'.$user->id.'/avatars', $request->file('file')); //Change the avatar url and mode - $user->avatar = Storage::url($path); + $user->avatar = '/assets/'.$path; $user->avatar_mode = 1; $user->save(); diff --git a/config/filesystems.php b/config/filesystems.php index d0a960f8..9d8c5a46 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -13,7 +13,7 @@ | */ - 'default' => env('FILESYSTEM_DRIVER', 'digitalocean'), + 'default' => env('FILESYSTEM_DRIVER', 'local'), /* |-------------------------------------------------------------------------- @@ -26,7 +26,7 @@ | */ - 'cloud' => env('FILESYSTEM_CLOUD', 'digitalocean'), + 'cloud' => env('FILESYSTEM_CLOUD', 'local'), /* |-------------------------------------------------------------------------- @@ -45,7 +45,7 @@ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => 'assets', ], 'public' => [ diff --git a/resources/views/about/staff.blade.php b/resources/views/about/staff.blade.php index 777bd684..06fcb3ad 100644 --- a/resources/views/about/staff.blade.php +++ b/resources/views/about/staff.blade.php @@ -29,7 +29,7 @@ @if(!$member->vacant()) @else - + @endif
Chat with our Gander Oceanic controller and pilot community