Deekshith's avatar

how to convert mysql column content to citation .ris file

I have a citation where I am storing citation content and now I want to convert it to citation file .ris format.

0 likes
5 replies
Sirik's avatar

Please mark as solution

1 like
Deekshith's avatar

@sirik still no use as this fastexcel works with get but I want to download citation in .ris format for each article. can you please send me one example code so that I will try also It is not in proper format if i use get()

$articleid = JournalArticle::where('id',1)->select('citation')->get();

(new FastExcel($articleid))->export('citation1.ris', function ($user) {
        return [
            'citation' => $user->citation,
        ];
    });

Sirik's avatar
(new FastExcel(JournalArticle::all()))->download('citation1.ris', function ($journal_article) {
    return [
            'citation' => $journal_article->citation,
        ];
});

I didn't validated the code but can you try this.

Please or to participate in this conversation.