Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function logo() |
||
41 | { |
||
42 | $path = storage_path(implode(DIRECTORY_SEPARATOR, ['app', 'public', 'system', 'logo.png'])); |
||
43 | |||
44 | $file = new \Symfony\Component\HttpFoundation\File\File($path); |
||
45 | |||
46 | return response(File::get($path), 200, ['Content-type' => $file->getMimeType()])->setMaxAge(604800)->setPublic(); |
||
47 | } |
||
49 |