mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
images corrected
This commit is contained in:
@@ -19,9 +19,7 @@ class ImageController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function __invoke(Request $request, Filesystem $filesystem, $path)
|
public function __invoke(Request $request, Filesystem $filesystem, $path)
|
||||||
{
|
{
|
||||||
if (str($request->path())->contains('img-public')) {
|
|
||||||
$filesystemPublic = Storage::disk('publicDisk');
|
$filesystemPublic = Storage::disk('publicDisk');
|
||||||
}
|
|
||||||
|
|
||||||
$server = ServerFactory::create([
|
$server = ServerFactory::create([
|
||||||
'response' => new LaravelResponseFactory(app('request')),
|
'response' => new LaravelResponseFactory(app('request')),
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ class Meetup extends Model implements HasMedia
|
|||||||
{
|
{
|
||||||
$media = $this->getFirstMedia('logo');
|
$media = $this->getFirstMedia('logo');
|
||||||
if ($media) {
|
if ($media) {
|
||||||
$path = str($media->getPath())->after('public/');
|
$path = str($media->getPath())->after('storage/app/');
|
||||||
} else {
|
} else {
|
||||||
$path = 'fallback/einundzwanzig.png';
|
$path = 'public/fallback/einundzwanzig.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
return Attribute::make(
|
return Attribute::make(
|
||||||
|
|||||||
Reference in New Issue
Block a user