diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 14da349..ca2197d 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -13,7 +13,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.3.3 + uses: dependabot/fetch-metadata@v1.6.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 9a784a1..e8ff1c6 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -8,14 +8,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@0.1.0 + uses: aglipanci/laravel-pint-action@2.6 - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Fix styling diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 557d263..ccfa9d9 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -11,7 +11,7 @@ jobs: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -20,7 +20,7 @@ jobs: coverage: none - name: Install composer dependencies - uses: ramsey/composer-install@v1 + uses: ramsey/composer-install@v2 - name: Run PHPStan run: ./vendor/bin/phpstan --error-format=github diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 39ff7ee..bdeac46 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,18 +13,23 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + php: [8.1, 8.2] + laravel: [9.*, 10.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 9.* testbench: 7.* + - laravel: 10.* + testbench: 8.* + exclude: + - laravel: 9.* + php: 8.2 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index b20f3b6..0cdea23 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main @@ -21,7 +21,7 @@ jobs: release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: branch: main commit_message: Update CHANGELOG diff --git a/CHANGELOG.md b/CHANGELOG.md index 9450de1..f9ccd38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,52 @@ # Changelog All notable changes to `laravel-csv` will be documented in this file. + +## v1.1.1 - 2022-11-07 + +### What's Changed + +- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in https://github.com/coderflexx/laravel-csv/pull/13 +- Update csv-importer.blade.php by @Globerada in https://github.com/coderflexx/laravel-csv/pull/12 + +### New Contributors + +- @Globerada made their first contribution in https://github.com/coderflexx/laravel-csv/pull/12 + +**Full Changelog**: https://github.com/coderflexx/laravel-csv/compare/v1.1.0...v1.1.1 + +## v1.1.0 - 2022-10-12 + +### What's Changed + +- Update README.md by @askdkc in https://github.com/coderflexx/laravel-csv/pull/9 +- Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 by @dependabot in https://github.com/coderflexx/laravel-csv/pull/10 +- Fixed vendor:publish tag name by @askdkc in https://github.com/coderflexx/laravel-csv/pull/11 + +### New Contributors + +- @dependabot made their first contribution in https://github.com/coderflexx/laravel-csv/pull/10 + +**Full Changelog**: https://github.com/coderflexx/laravel-csv/compare/v1.0.2...v1.1.0 + +## v1.0.2 - 2022-09-29 + +### What's Changed + +- Bug Fix: package installation failure by @askdkc in https://github.com/coderflexx/laravel-csv/pull/5 + +**Full Changelog**: https://github.com/coderflexx/laravel-csv/compare/v1.0.1...v1.0.2 + +## v1.0.1 - 2022-09-28 + +### What's Changed + +- Copy changes for README by @johnwesely in https://github.com/coderflexx/laravel-csv/pull/2 +- Fixed broken link by @askdkc in https://github.com/coderflexx/laravel-csv/pull/3 + +### New Contributors + +- @johnwesely made their first contribution in https://github.com/coderflexx/laravel-csv/pull/2 +- @askdkc made their first contribution in https://github.com/coderflexx/laravel-csv/pull/3 + +**Full Changelog**: https://github.com/coderflexx/laravel-csv/compare/v1.0.0...v1.0.1 diff --git a/README.md b/README.md index a121c18..e29f32c 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@

-[![Latest Version on Packagist](https://img.shields.io/packagist/v/coderflexx/laravel-csv.svg?style=flat-square)](https://packagist.org/packages/coderflex/laravel-csv) -[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/coderflexx/laravel-csv/run-tests?label=tests)](https://github.com/coderflexx/laravel-csv/actions?query=workflow%3Arun-tests+branch%3Amain) -[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/coderflexx/laravel-csv/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/coderflexx/laravel-csv/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) -[![Total Downloads](https://img.shields.io/packagist/dt/coderflexx/laravel-csv.svg?style=flat-square)](https://packagist.org/packages/coderflex/laravel-csv) +[![Latest Version on Packagist](https://img.shields.io/packagist/v/coderflex/laravel-csv.svg?style=flat-square)](https://packagist.org/packages/coderflex/laravel-csv) +[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/coderflexx/laravel-csv/run-tests.yml?branch=main&label=tests)](https://github.com/coderflexx/laravel-csv/actions?query=workflow%3Arun-tests+branch%3Amain) +[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/coderflexx/laravel-csv/phpstan.yml?branch=main&label=code%20style)](https://github.com/coderflexx/laravel-csv/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) +[![Total Downloads](https://img.shields.io/packagist/dt/coderflex/laravel-csv.svg?style=flat-square)](https://packagist.org/packages/coderflex/laravel-csv) - [Introduction](#introduction) @@ -46,6 +46,8 @@ php artisan vendor:publish --tag="csv-migrations" php artisan migrate ``` +Add trait **HasCsvImports** to your User model. + Publish the config file with: ```bash @@ -90,7 +92,7 @@ The `file_upload_size` is for validation rules, and it defines the maximum file Optionally, you can publish the views using ```bash -php artisan vendor:publish --tag="csv-views" +php artisan vendor:publish --tag="laravel-csv-views" ``` > Before Using this command, please take a look at this [section](#in-tall-stack-project) below. @@ -98,7 +100,7 @@ php artisan vendor:publish --tag="csv-views" ## Usage ### CSV Importer Component -Using this package is a breeze. To implmenent the importer in your project, simply include the following component inside a Blade view. +Using this package is a breeze. To implement the importer in your project, simply include the following component inside a Blade view. ```blade Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy