images corrected

This commit is contained in:
HolgerHatGarKeineNode
2023-04-25 11:23:46 +02:00
parent c2d38f0f36
commit 5a4322b035
2 changed files with 3 additions and 5 deletions

View File

@@ -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')),

View File

@@ -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(