Skip to content

Commit

Permalink
Update CompanyController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Mar 30, 2024
1 parent 9f5aee5 commit 8cd078a
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 8cd078a

Please sign in to comment.