Skip to content

Commit

Permalink
Update CompanyController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldFon authored Aug 17, 2024
1 parent a37ba5c commit 4b83100
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 4b83100

Please sign in to comment.