Skip to content

Commit 6e80782

Browse files
added instruction license and demo file
Signed-off-by: kumar ravi <[email protected]>
1 parent 92b01b9 commit 6e80782

File tree

4 files changed

+14012
-77
lines changed

4 files changed

+14012
-77
lines changed

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Taylor Otwell
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+46-77
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,48 @@
1-
<p align="center"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></p>
2-
3-
<p align="center">
4-
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
8-
</p>
9-
10-
## About Laravel
11-
12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
13-
14-
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15-
- [Powerful dependency injection container](https://laravel.com/docs/container).
16-
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17-
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18-
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19-
- [Robust background job processing](https://laravel.com/docs/queues).
20-
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21-
22-
Laravel is accessible, powerful, and provides tools required for large, robust applications.
23-
24-
## Learning Laravel
25-
26-
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
27-
28-
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
29-
30-
## Laravel Sponsors
31-
32-
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
33-
34-
- **[Vehikl](https://vehikl.com/)**
35-
- **[Tighten Co.](https://tighten.co)**
36-
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
37-
- **[64 Robots](https://64robots.com)**
38-
- **[Cubet Techno Labs](https://cubettech.com)**
39-
- **[Cyber-Duck](https://cyber-duck.co.uk)**
40-
- **[Many](https://www.many.co.uk)**
41-
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
42-
- **[DevSquad](https://devsquad.com)**
43-
- [UserInsights](https://userinsights.com)
44-
- [Fragrantica](https://www.fragrantica.com)
45-
- [SOFTonSOFA](https://softonsofa.com/)
46-
- [User10](https://user10.com)
47-
- [Soumettre.fr](https://soumettre.fr/)
48-
- [CodeBrisk](https://codebrisk.com)
49-
- [1Forge](https://1forge.com)
50-
- [TECPRESSO](https://tecpresso.co.jp/)
51-
- [Runtime Converter](http://runtimeconverter.com/)
52-
- [WebL'Agence](https://weblagence.com/)
53-
- [Invoice Ninja](https://www.invoiceninja.com)
54-
- [iMi digital](https://www.imi-digital.de/)
55-
- [Earthlink](https://www.earthlink.ro/)
56-
- [Steadfast Collective](https://steadfastcollective.com/)
57-
- [We Are The Robots Inc.](https://watr.mx/)
58-
- [Understand.io](https://www.understand.io/)
59-
- [Abdel Elrafa](https://abdelelrafa.com)
60-
- [Hyper Host](https://hyper.host)
61-
- [Appoly](https://www.appoly.co.uk)
62-
- [OP.GG](https://op.gg)
63-
- [云软科技](http://www.yunruan.ltd/)
64-
65-
## Contributing
66-
67-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
68-
69-
## Code of Conduct
70-
71-
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
72-
73-
## Security Vulnerabilities
74-
75-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.
76-
1+
<p align="center"><img alt="kumar ravi" src="https:////0.gravatar.com/avatar/52810d4a341c602e1bd5e7fc5bb266f2?s=180" width="200"></p>
2+
3+
## About Multisheet
4+
5+
Laravel multisheet is a demo application to display how we can import excel file with multiple sheet and formula using [Laravel Excel](https://laravel-excel.com/). We have also used [yajra datatables](https://datatables.yajrabox.com/) to display back the imported data.
6+
7+
##Prerequisites
8+
I am assuming you have basic knowledge of the laravel ecosystem and, you can install/run a demo laravel application.
9+
- composer
10+
- yarn
11+
12+
## Installation Steps
13+
14+
Following are commands to install and run the demo on your local computer
15+
- **Clone repository in your local machine**
16+
- **cd to project root folder (if project folder name is too long for you, rename it)**
17+
- **`cp .env.example .env`**
18+
- `update your DB_DATABASE DB_USERNAME DB_PASSWORD in .env file`
19+
- **`composer install`**
20+
- **`php artisan key:generate`**
21+
- **`yarn`**
22+
- **`yarn run dev`**
23+
- **`php artisan migrate`**
24+
- **`php artisan serve`**
25+
- **Open [localhost:8000](http://localhost:8000)**
26+
- Click on browse file and select **book.xslx** file from your project root bolder.
27+
- Click import
28+
29+
## Testing The Demo
30+
There is a demo file book.xlsx file included in project root for you to import and analyse.
31+
32+
- This file has two sheets **Books and Sales**
33+
1. **Books Sheet:** Contains the book details.
34+
2. **Sales Sheet:** Contains sales details and has a formula on total_revenue column which multiplies Books sheet price with Sales sheet copies_sold column.
35+
`=PRODUCT(Books!C2,Sales!A2)`
36+
37+
## Possible Known Issue
38+
39+
- The pattern of declaration of sheets in your UsersImport file should bye your sheet containing formula first and then your sheet containing dependent data for the formula. In this demo case that pattern is
40+
Sales sheet first then the Books sheet.
41+
`'Sales' => new SalesSheetImport(),`
42+
`'Books' => new BookSheetImport(),`
43+
44+
**else you will get an error saying**
45+
`Call to a member function has() on null`
7746
## License
7847

79-
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
48+
Multisheet demo is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)