mirror of
https://github.com/10h30/Test-Laravel-File-Upload.git
synced 2026-07-11 18:56:13 +09:00
Completed all tasks
This commit is contained in:
@@ -20,7 +20,7 @@ class CompanyController extends Controller
|
||||
public function show(Company $company)
|
||||
{
|
||||
// TASK: retrieve the full URL to the uploaded photo file, using Spatie Media Library
|
||||
$photo = '???';
|
||||
$photo = $company->getFirstMediaUrl('companies');
|
||||
|
||||
return view('companies.show', compact('company', 'photo'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user