Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
update link images api
Browse files Browse the repository at this point in the history
  • Loading branch information
MyFRA committed Jun 23, 2021
1 parent 5977cba commit 3c1a310
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/MemberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function index()
$data = Member::get()->makeHidden($this->hiddenCols);
$members = [];
foreach($data as $member) {
$member['image'] = url('/') . config('app.cdn') . $member->image;
$member['image'] = config('app.cdn') . $member->image;
$members[] = $member;
}

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/PortofolioController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function index(Request $request)

$portofolios = [];
foreach($data as $porto) {
$porto['images_url'] = url('/') . config('app.cdn') . $porto->images_url;
$porto['images_url'] = config('app.cdn') . $porto->images_url;
$portofolios[] = $porto;
}

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/TestimonialController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function index()
$data = Testimonial::get()->makeHidden($this->hiddenCols);
$testimonials = [];
foreach($data as $testimonial) {
$testimonial['picture'] = url('/') . config('app.cdn') . $testimonial->picture;
$testimonial['picture'] = config('app.cdn') . $testimonial->picture;
$testimonials[] = $testimonial;
}

Expand Down

0 comments on commit 3c1a310

Please sign in to comment.