Closed FrankOssie closed 4 years ago
Or maybe in a different return or another method. To get the raw data
Hey @FrankOssie sorry, what do you want to achieve? An event link without base64_encode?
Yes without base64 encode and without the type declarations
@FrankOssie what is the problem with type declarations? With base64_encode? I need to see the whole picture before making any changes.
That i want the ics data seperate from the type declarations to attach it to the email. Otherwise it will not be detected as an ics card now i ended up replacing the type like this str_replace('data:text/calendar;charset=utf8;base64,','',$link->ics()),
and my provider wants it base64 encoded so would be nice if you just send out the ics card data so everyone can do with it what they want
@FrankOssie I've extracted a logic to generate a link from ics parts into a new protected method, now it's easier to extend ICS generator and override this simple method for your needs. This generator can potentially accept a lot of properties what will make further development very complex (combinatorial explosion).
I would recommend you to use \Spatie\CalendarLinks\Link::formatWith(new Your\Custom\IcsGenerator())
for emails.
Awesome thnx!
What do you want to achieve?
Maybe add this?