├── .github └── workflows │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── docker-compose.yml ├── phpstan.neon ├── phpunit.xml ├── src ├── Builder │ ├── Builder.php │ └── Concerns │ │ ├── HasColumns.php │ │ ├── HasFields.php │ │ ├── HasFile.php │ │ ├── HasLines.php │ │ ├── IgnoresLines.php │ │ ├── IsLowPriorityOrConcurrent.php │ │ ├── ReplacesOrIgnores.php │ │ └── SetsValues.php ├── CompiledQuery.php ├── Exceptions │ └── CompilationException.php ├── Grammar.php └── Laravel │ ├── Facades │ └── LoadFile.php │ ├── Providers │ └── LaravelLoadFileServiceProvider.php │ └── Traits │ └── LoadsFiles.php └── tests ├── Feature ├── LoadFileTest.php ├── LoadsFilesTraitTest.php ├── Models │ ├── TestUser.php │ └── TestUserNoOptions.php └── TestCase.php ├── Unit ├── Builder │ ├── BuilderTest.php │ └── Concerns │ │ ├── HasColumnsTest.php │ │ ├── HasFieldsTest.php │ │ ├── HasFileTest.php │ │ ├── HasLinesTest.php │ │ ├── IgnoresLinesTest.php │ │ ├── IsLowPriorityOrConcurrentTest.php │ │ ├── ReplacesOrIgnoresTest.php │ │ └── SetValuesTest.php └── GrammarTest.php ├── data ├── people-simple.csv └── people.csv ├── docker └── Dockerfile ├── laravel └── laravel-version-test.php └── migrations └── 2021_04_01_000000_create_people_table.php /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/composer.lock -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Builder/Builder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Builder.php -------------------------------------------------------------------------------- /src/Builder/Concerns/HasColumns.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/HasColumns.php -------------------------------------------------------------------------------- /src/Builder/Concerns/HasFields.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/HasFields.php -------------------------------------------------------------------------------- /src/Builder/Concerns/HasFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/HasFile.php -------------------------------------------------------------------------------- /src/Builder/Concerns/HasLines.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/HasLines.php -------------------------------------------------------------------------------- /src/Builder/Concerns/IgnoresLines.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/IgnoresLines.php -------------------------------------------------------------------------------- /src/Builder/Concerns/IsLowPriorityOrConcurrent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/IsLowPriorityOrConcurrent.php -------------------------------------------------------------------------------- /src/Builder/Concerns/ReplacesOrIgnores.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/ReplacesOrIgnores.php -------------------------------------------------------------------------------- /src/Builder/Concerns/SetsValues.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Builder/Concerns/SetsValues.php -------------------------------------------------------------------------------- /src/CompiledQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/CompiledQuery.php -------------------------------------------------------------------------------- /src/Exceptions/CompilationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Exceptions/CompilationException.php -------------------------------------------------------------------------------- /src/Grammar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Grammar.php -------------------------------------------------------------------------------- /src/Laravel/Facades/LoadFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Laravel/Facades/LoadFile.php -------------------------------------------------------------------------------- /src/Laravel/Providers/LaravelLoadFileServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Laravel/Providers/LaravelLoadFileServiceProvider.php -------------------------------------------------------------------------------- /src/Laravel/Traits/LoadsFiles.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/src/Laravel/Traits/LoadsFiles.php -------------------------------------------------------------------------------- /tests/Feature/LoadFileTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Feature/LoadFileTest.php -------------------------------------------------------------------------------- /tests/Feature/LoadsFilesTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Feature/LoadsFilesTraitTest.php -------------------------------------------------------------------------------- /tests/Feature/Models/TestUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Feature/Models/TestUser.php -------------------------------------------------------------------------------- /tests/Feature/Models/TestUserNoOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Feature/Models/TestUserNoOptions.php -------------------------------------------------------------------------------- /tests/Feature/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Feature/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/Builder/BuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/BuilderTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/HasColumnsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/HasColumnsTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/HasFieldsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/HasFieldsTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/HasFileTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/HasFileTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/HasLinesTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/HasLinesTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/IgnoresLinesTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/IgnoresLinesTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/IsLowPriorityOrConcurrentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/IsLowPriorityOrConcurrentTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/ReplacesOrIgnoresTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/ReplacesOrIgnoresTest.php -------------------------------------------------------------------------------- /tests/Unit/Builder/Concerns/SetValuesTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/Builder/Concerns/SetValuesTest.php -------------------------------------------------------------------------------- /tests/Unit/GrammarTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/Unit/GrammarTest.php -------------------------------------------------------------------------------- /tests/data/people-simple.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/data/people-simple.csv -------------------------------------------------------------------------------- /tests/data/people.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/data/people.csv -------------------------------------------------------------------------------- /tests/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/docker/Dockerfile -------------------------------------------------------------------------------- /tests/laravel/laravel-version-test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/laravel/laravel-version-test.php -------------------------------------------------------------------------------- /tests/migrations/2021_04_01_000000_create_people_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellgreen/laravel-loadfile/HEAD/tests/migrations/2021_04_01_000000_create_people_table.php --------------------------------------------------------------------------------