Skip to content

Commit

Permalink
Update CompanyController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Sep 14, 2024
1 parent ce24b92 commit c5fbb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CompanyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function store(Request $request)
public function show(Company $company)
{
// TASK: retrieve the full URL to the uploaded photo file, using Spatie Media Library
$photo = '???';
$photo = $company->getMedia('companies')[0]->getFullUrl();

return view('companies.show', compact('company', 'photo'));
}
Expand Down

0 comments on commit c5fbb4c

Please sign in to comment.