Laravel Exel pacakge tutorial export data to XLS, CSV and PDF

  Рет қаралды 6,219

Amitav Roy

Amitav Roy

Күн бұрын

#laravel
While working on some reporting requirements in a project, I discovered this nice package which can help us a lot in generating reports in different formats like Excel, CSV and even PDF.
This is the first video where I go on exploring the package.
You can find me on:
Twitter: / amitavroy7​
Discord: / discord

Пікірлер: 36
@limoh
@limoh 2 жыл бұрын
Thank You, Amitav
@amitavroydev
@amitavroydev 2 жыл бұрын
Welcome... request you to share the content and subscribe if you have not done it already
@ErvisHysiDev
@ErvisHysiDev 2 жыл бұрын
What if I want do make a query with condition where('invoice.id', $id), can you please share any example for that?
@amitavroydev
@amitavroydev 2 жыл бұрын
It will just be a query with the condition. For example, User::select(['fields'])->where('user', $id)->get();
@ibrahimsherif6648
@ibrahimsherif6648 2 жыл бұрын
Good evening, nice video, but i've an issue, what is in i want the pdf in landscape format ?? How would i specify it please ?? Thanks in advance...
@amitavroydev
@amitavroydev 2 жыл бұрын
This package allows you to use DOM PDF to generate PDF. And, in DOM PDF you can use the set_paper method to define landscape. Check the stackoverflow link: stackoverflow.com/a/36018887/1367259 This should help you.
@carlosmaralit-o3l
@carlosmaralit-o3l 9 ай бұрын
hello there, can you do a video about modifying the looks of the pdf using that library as well? and also maybe like when you click something, the pdf will open up on new tab? thank youuuuu, this is very helpful vid, I learn a lot
@amitavroydev
@amitavroydev 9 ай бұрын
It's possible. However, not something I am planning to do recently
@SalomDunyoIT
@SalomDunyoIT 2 жыл бұрын
How about Cyrillic chars from DB(utf8mb4 set) to pdf using fromView?
@amitavroydev
@amitavroydev 2 жыл бұрын
Don't know.. sorry about that.
@bl4nknvrlose604
@bl4nknvrlose604 2 жыл бұрын
Is it possible to assign or specify the excel file when exporting? I have a format to follow but I can't figure out.
@amitavroydev
@amitavroydev 2 жыл бұрын
I don't think I completely understand your requirement. Can you elaborate? possible to assign or specify the excel file - you mean a file where you want to append data?
@bl4nknvrlose604
@bl4nknvrlose604 2 жыл бұрын
@@amitavroydev yeah but i do think it's not possible so I think I gonna design in the blade view.
@amitavroydev
@amitavroydev 2 жыл бұрын
That's what even I felt. Might be possible but can be quite complicated
@francisjipson6749
@francisjipson6749 2 жыл бұрын
👍👍
@amitavroydev
@amitavroydev 2 жыл бұрын
Thanks
@yakiiz5924
@yakiiz5924 3 жыл бұрын
Hello, do you have any video about your windows or vscode configuration?
@amitavroydev
@amitavroydev 3 жыл бұрын
For windows, no. I never thought people would be interested. However, my entire vscode setting is here: gist.github.com/amitavroy/c4c83057e3bf82b18eaaf410efa2e940 Do note, some plugins are just sitting there :)
@naumtinga
@naumtinga 2 жыл бұрын
Can i put style the tables? IT LOOKS TO SIMPLE
@amitavroydev
@amitavroydev Жыл бұрын
Yes you can
@mr_d_hub
@mr_d_hub 3 жыл бұрын
Thank you very much..
@amitavroydev
@amitavroydev 3 жыл бұрын
You are welcome
@akshaythorat3904
@akshaythorat3904 2 жыл бұрын
Sir can you please share vs code extensions list used for laravel..😊
@amitavroydev
@amitavroydev 2 жыл бұрын
Intelliphense
@khizrshaikh9902
@khizrshaikh9902 3 жыл бұрын
*_first comment I want heart_*
@amitavroydev
@amitavroydev 3 жыл бұрын
Thanks for the comment and support. Do subscribe if you have not done already and do like the video.
@eliaschampi
@eliaschampi 3 жыл бұрын
Great! Laravel exCel
@amitavroydev
@amitavroydev 3 жыл бұрын
Yup
@Ehsankhan0577
@Ehsankhan0577 3 жыл бұрын
nice video......sir how to insert data from the file into table.......means reverse of it
@amitavroydev
@amitavroydev 3 жыл бұрын
When you insert the file, you get the file object. You need to then use that file object to save the relationship. For example, if a user has a profile pic which is of type file. Then, save the file const file = await fileService.save(data); const user = ..., profilePic = file await userService.save(user);
@lastninja2022
@lastninja2022 3 жыл бұрын
do you have CRUD and search filter with this printing?
@amitavroydev
@amitavroydev 3 жыл бұрын
This video is a straight up one on how to use the package. If you apply filter and get the query, you will get the result and you can then send it to the package do get an Excel
@rhnnf3502
@rhnnf3502 2 жыл бұрын
Hello, is there any way to change to pdf size or fit in a large table ? Thanks !
@amitavroydev
@amitavroydev 2 жыл бұрын
PDF are generally page size. But the package does allow you to set a custom page size
@darn2926
@darn2926 Жыл бұрын
I know its long but somebody help me, what do i do if i want such that not to export the file, meaning having a pop up where the user chooses a download location, what i want is generate a report and have it sent as an attachment on an email, so i was asking how can i attain that, where the controller will make the xls or pdf and have it sent on an email. please @amitavroydev and thank you
@amitavroydev
@amitavroydev Жыл бұрын
In this case, raise an event and then handle it through the event listener.
PHP is the future
34:27
Aaron Francis
Рет қаралды 177 М.
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 22 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,4 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 53 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 30 М.
Laravel dependency inject - what is it and how to use it
15:33
Amitav Roy
Рет қаралды 14 М.
Laravel: Create Public API with Cache and Rate Limits
12:18
Laravel Daily
Рет қаралды 46 М.
NADIR ALI PODCAST FEATURING DR ZAKIR NAIK !!
1:41:28
Nadir Ali
Рет қаралды 5 МЛН
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 60 М.
Laravel PDF Export - Useful Laravel Packages
9:05
Andre Madarang
Рет қаралды 71 М.
Laravel 8 Tutorial - Export Data in Excel and CSV
23:22
Surfside Media
Рет қаралды 35 М.
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 22 МЛН