You can inject these ExcelFiles inside the __constructor or inside the method (when using Laravel 5.0), in e.g. the controller.

class ExampleController extends Controller {

public function importUserList(UserListImport $import)
// get the results
$results = $import->get();


CSV Settings

You can pass through optional CSV settings, like $delimiter, $enclosure and $lineEnding as protected properties of the class.

class UserListImport extends \Maatwebsite\Excel\Files\ExcelFile {

protected $delimiter = ',';
 protected $enclosure = '"';
 protected $lineEnding = '\r\n';