Home › IT, Data & Software › Laravel Excel Use Existing Template File



Previewing: Version 1 · Laravel Order Export Template with Placeholders. Pick another version on the right.
Instant download · No sign-up · No email
Download these free Excel template files to use with Laravel. One is an order export with placeholders and a line table. One is a user import file with the heading row and validation rules. One is a report with a cover, a summary and a data sheet.
Choose your version
- File
- .xlsx · 15 KB · 3 sheets
- Works with
- Microsoft Excel (.xlsx)
- Macros
- None · formulas only
- Price
- Free
Use an existing Excel template file in Laravel
Using an existing Excel file as a template keeps the layout in Excel, where designers and analysts are comfortable, and keeps the code in Laravel short. The code opens the file, writes the placeholders and the rows, and saves a new copy. The formulas and the charts stay in the template.
These three files are ready for that. Version 1 is an order export, Version 2 is a user import and Version 3 is a report. Each has a map of the cells and a short PhpSpreadsheet example. On the .NET side, the vb net excel template page has the same idea for VB.NET.
Best for
- Laravel developers that export invoices, orders or reports and want the layout to stay in Excel
- Teams where a designer or an analyst owns the template and the code only fills it
- Developers that import spreadsheets with Laravel Excel and need a clear heading row
Maybe not for
The Laravel Excel package or a full tutorial. These are Excel files with short code notes: the layout, the placeholders and the rules are ready, and you write the code in your own project.
Which version is right for you?
All three are free, formula-driven Excel files with sample data you can replace. They are independent, so you can download more than one.
Version 1
Laravel Order Export Template with Placeholders

An order sheet with text placeholders and 200 line rows with formulas for the totals, a map sheet that shows where the code writes and a code notes sheet with a PhpSpreadsheet example.
OrderMapCode Notes
.xlsx · 15 KB
Version 2
Laravel User Import Template with Validation Rules

An import sheet with lowercase headings and a row check, a Read Me, a rules sheet with the Laravel rule for each column, a check sheet with charts and a lists sheet.
ImportRead MeRulesCheckLists
.xlsx · 35 KB
Version 3
Laravel Multi-Sheet Report Template

A cover with placeholders, a summary with formulas and charts, a data sheet with the heading row in row 1, a map sheet and a code notes sheet that keeps the charts when it loads the file.
CoverSummaryDataMapCode Notes
.xlsx · 31 KB
What is inside the Laravel Excel template files
Version 1: Laravel Order Export Template with Placeholders
The Order sheet has placeholders such as {{company_name}} and {{order_number}} in the header and a yellow area for up to 200 lines. The line total, the number of lines and the total are formulas.
The Map sheet lists each placeholder, the cell it sits in and the way to write it. The Code Notes sheet has a PhpSpreadsheet example that loads the file, writes the cells and saves a new one.
Version 2: Laravel User Import Template with Validation Rules
The Import sheet has the heading row in row 1, as Laravel Excel expects with a heading row, and the columns name, email, phone, role, start date, salary and active. A row check column tells you what is wrong with each row.
The Rules sheet gives the Laravel validation rule of each column, and the Check sheet counts the rows that are ready and each kind of problem with two charts. The Lists sheet holds the allowed roles.
Version 3: Laravel Multi-Sheet Report Template
The Cover has placeholders for the title, the period and the author. The Data sheet has the heading row in row 1 and one row per sale. The Summary calculates the revenue, the units, the profit and the margin for a year with SUMIFS.
The Summary also shows the revenue by region and by month with two charts that follow the data. The Map and Code Notes sheets show where to write and how to keep the charts.
How to use an existing Excel template in Laravel
- Download
Pick the template that fits your task and put it in your project, for example in storage/app/templates. - Open it
Load the file with PhpSpreadsheet, which Laravel Excel installs, or reopen it inside an export class. - Write the data
Replace the placeholders and write the rows with fromArray() from the first data row. - Keep the formulas
Do not write over cells that have formulas. Excel calculates them when the file opens. - Save a new file
Save to a different name and send it or store it. The template stays untouched.
The Map sheet of each file shows exactly where the code writes.
Which Laravel Excel template do you need?
| Order Export | User Import | Report | |
|---|---|---|---|
| Best for | A document with placeholders | Reading rows with a heading row | A report with a cover and charts |
| Excel parts | Placeholders, line rows, totals | Heading row, rules, row check | Cover, summary formulas, data |
| You get | Totals calculated by Excel | Laravel rules, row check | Charts that follow the data |
| Sheets | 3 | 5 | 5 |
| Charts | 0 | 2 | 2 |
They are separate files, so you can use more than one.
Tips for using a template file in Laravel
- Keep the template outside the public folder and never overwrite it.
- Write dates as Excel date values, not as text.
- Load the template with charts enabled if your file has charts.
- Leave cells with formulas alone and let Excel calculate them.
- Test the file with a few rows before a large export.
Frequently asked questions
Are these Laravel Excel template files free?
Yes. All three are free to download as .xlsx files. You do not need an account or an email address.
Which template should I choose?
Choose the Order Export (Version 1) for a document with a header and lines. Choose the User Import (Version 2) to read rows with a heading row and rules. Choose the Report (Version 3) for a report with a cover, a summary and charts.
How do I use an existing Excel file as a template in Laravel?
Load the file with PhpSpreadsheet’s IOFactory, write the values into the cells you need, and save the spreadsheet under a new name. Laravel Excel can also reopen a template inside an export class with the reopen method.
Will the charts and formulas of my template survive?
Formulas are kept. Charts are kept when you load the file with charts enabled and save with the same setting. Always test with your own template, because some features, such as complex conditional formats, may need checking.
Is this template an official Laravel file?
No. These are independent files made by Excel Corner. They are not affiliated with or endorsed by Laravel or the Laravel Excel package, and the code notes are only examples.
More free IT, data and process templates








These templates use made-up sample data and short code examples. They are starting points for developers and analysts, not production software. Test every file and every line of code in a copy of your own project, and check the code against the documentation of the version you use, before you use it with real data. Excel is a trademark of Microsoft Corporation; Excel Corner is not affiliated with Microsoft.