Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
mufassilyasir committed Nov 22, 2023
1 parent b60f749 commit 2f021fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Community/MyCzqoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

'default' => env('FILESYSTEM_DRIVER', 'digitalocean'),
'default' => env('FILESYSTEM_DRIVER', 'local'),

/*
|--------------------------------------------------------------------------
Expand All @@ -26,7 +26,7 @@
|
*/

'cloud' => env('FILESYSTEM_CLOUD', 'digitalocean'),
'cloud' => env('FILESYSTEM_CLOUD', 'local'),

/*
|--------------------------------------------------------------------------
Expand All @@ -45,7 +45,7 @@

'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'root' => 'assets',
],

'public' => [
Expand Down
4 changes: 2 additions & 2 deletions resources/views/about/staff.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@if(!$member->vacant())
<img src="{{$member->user->avatar()}}" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
@else
<img src="https://cdn.ganderoceanic.ca/resources/user.png" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
<img src="{{asset('assets/resources/user.png')}}" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
@endif
<div class="d-flex flex-column">
<h4 class="font-weight-bold">
Expand Down Expand Up @@ -59,7 +59,7 @@
@if(!$member->vacant())
<img src="{{$member->user->avatar()}}" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
@else
<img src="https://cdn.ganderoceanic.ca/resources/user.png" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
<img src="{{asset('assets/resources/user.png')}}" style="height: 80px; width:80px;margin-right: 15px; border-radius: 50%;">
@endif
<div class="d-flex flex-column">
<h4 class="font-weight-bold">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/primary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="theme-color" content="#0080c9">
<meta name="og:title" content="@yield('title', '')Gander Oceanic OCA">
<meta name="og:description" content="@yield('description', '')">
<meta name="og:image" content="@yield('image','https://cdn.ganderoceanic.ca/resources/media/img/brand/sqr/ZQO_SQ_TSPBLUE.png')">
<meta name="og:image" content="@yield('image','{{asset('assets/resources/media/img/brand/sqr/ZQO_SQ_TSPBLUE.png')}}">
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}" type="image/x-icon">
<!-- Font Awesome -->
Expand Down Expand Up @@ -345,7 +345,7 @@
<li class="w-100">
<div class="grey lighten-3 p-4" style="border-radius: 20px;">
<div class="d-flex flex-row">
<img style="height: 40px; margin-right: 20px;" src="https://cdn.ganderoceanic.ca/resources/media/img/brand/sqr/ZQO_SQ_TSPBLUE.png" alt="">
<img style="height: 40px; margin-right: 20px;" src="{{asset('assets/resources/media/img/brand/sqr/ZQO_SQ_TSPBLUE.png')}}" alt="">
<p class="font-weight-bold" style="width: 75%; text-align:left; font-size: 1.1em;">Chat with our Gander Oceanic controller and pilot community</p>
</div>
</div>
Expand Down

0 comments on commit 2f021fc

Please sign in to comment.