PHPackages                             fauzantaqiyuddin/laravel-minio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. fauzantaqiyuddin/laravel-minio

ActiveLibrary[File &amp; Storage](/categories/file-storage)

fauzantaqiyuddin/laravel-minio
==============================

A Laravel package to upload files to Minio Object Storage

v1.10.5(1y ago)0458MITPHPPHP ^5.6|^7.0|^8.0|^8.1|^8.2

Since Jul 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fauzantaqiyuddin/laravel-minio)[ Packagist](https://packagist.org/packages/fauzantaqiyuddin/laravel-minio)[ RSS](/packages/fauzantaqiyuddin-laravel-minio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

[![Logo](https://camo.githubusercontent.com/c50d69ba1477528867bd5e70d4fcd7bb9759634bb77186b87db67b65e3ecaa28/68747470733a2f2f692e6962622e636f2e636f6d2f5756744367527a2f426c61636b2d4d696e696d616c2d427573696e6573732d506572736f6e616c2d50726f66696c652d4c696e6b6564696e2d42616e6e65722e706e67)](https://camo.githubusercontent.com/c50d69ba1477528867bd5e70d4fcd7bb9759634bb77186b87db67b65e3ecaa28/68747470733a2f2f692e6962622e636f2e636f6d2f5756744367527a2f426c61636b2d4d696e696d616c2d427573696e6573732d506572736f6e616c2d50726f66696c652d4c696e6b6564696e2d42616e6e65722e706e67)

Laravel Minio Storage
=====================

[](#laravel-minio-storage)

A Laravel package to upload files to Minio Object Storage.

Installation
------------

[](#installation)

1. Install the package via Composer:

    ```
    composer require fauzantaqiyuddin/laravel-minio
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="Fauzantaqiyuddin\LaravelMinio\MiniojanServiceProvider"
    ```

Configuration
-------------

[](#configuration)

1. Add the following environment variables to your `.env` file:

    ```
    MINIO_REGION=us-east-1
    MINIO_ENDPOINT=http://127.0.0.1:9000
    MINIO_ACCESS_KEY=your-access-key
    MINIO_SECRET_KEY=your-secret-key
    MINIO_BUCKET=your-bucket-name
    ```
2. The configuration file `config/miniojan.php` will be published to your Laravel project. You can customize it as needed.

Usage
-----

[](#usage)

### Uploading Files

[](#uploading-files)

To upload files to Minio, use the `upload` method.

#### Example Controller

[](#example-controller)

```
