Home

Awesome

Laravel Chunked Upload Example

This example covers all supported versions of Laravel. This implementation allows testing across all versions simultaneously.

This repository contains a full example for the laravel-chunk-upload package. You can either explore an example app or run tests against all supported versions of Laravel.

Install

git clone git@github.com:pionl/laravel-chunk-upload-example.git --recurse-submodules
npm install

Requirements

Usage

To install and run a specific version of Laravel, use the X.* version format.

node run.js "8.*"

Pass --ignore-example to ignore updating and building the example.

Pass --verbose for debug information.

Open http://localhost:8000

Compatibility

The current version of laravel-chunk-upload is tested against:

LaravelPHPRunTests
10.*8.2-node-20, 8.2-node-20node run "11.*"node tests.js "11.*"
10.*8.1-node-17, 8.2-node-18node run "10.*"node tests.js "10.*"
9.*8.0-node-17, 8.1-node-17, 8.2-node-18node run "9.*"node tests.js "9.*"
8.*7.4-node-17, 8.0-node-17, 8.1-node-17node run "8.*"node tests.js "8.*"
7.*7.4-node-17node run "7.*"node tests.js "7.*"

Tests

Pass --verbose for debug information.

Run tests on all Laravel versions (install them before using it) using docker

node tests.js

Run tests on a desired Laravel version

node tests.js "8.*"

Running Tests Locally

Docker-Compose

IMAGE_VERSION=7.4 LARAVEL_VERSION=8.\* docker-compose -f docker-compose.yml -f docker-compose-tests.yml up --abort-on-container-exit

Testing Your Contribution

Do not commit your changes - use a pull request in the main repo.

pr.sh <your-github-username> <branch = default is master> <repository-name = laravel-chunk-upload>

Adding Support for a New Laravel Release

Do not commit your changes - use a pull request in the main repo.

Example Code

Uploading to Amazon S3 (or Any Other Cloud Storage)

Example code found at ./example/src/Http/Controllers/UploadController.php.

Contribution

TODO

Running Tests on the Latest Laravel Release

I did not find a way to install Laravel on master with the latest changes from the framework. Let me know if you know how.

Copyright and License

laravel-chunk-upload-example was written by Martin Kluska and is released under the MIT License.

Copyright (c) 2017 and beyond Martin Kluska and all the contributors (Thank you ❤️)