---
# System prepended metadata

title: Excel Import

---

# Excel Import

### Create Import
```
php artisan make:import LineLapImport
```
### Usage
如果匯入一個 excel 如下
|name|email|
|-|-|
|Joe|joe@gmail.com|
|Alice|alice@gmail.com|

```php
// ExcelController

use Maatwebsite\Excel\Facades\Excel;

public function upload(Request $request)
{
    $arratData = Excel::import(new LineLapImport(), $request->file);
    var_dump($arrData); // 會印出什麼?
}

```