PHPackages                             corbosman/laravel-docker-secrets - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. corbosman/laravel-docker-secrets

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

corbosman/laravel-docker-secrets
================================

Use Docker Swarm Secrets in your Laravel config files

3.0.0(2y ago)1017.0k↓50%2MITPHP

Since Nov 22Pushed 2y ago1 watchersCompare

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

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

Laravel Docker Secrets
======================

[](#laravel-docker-secrets)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5f313c8ed6b031484f87ccf161b078e032ce98f8a099d207cd87aa76715f4eaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f72626f736d616e2f6c61726176656c2d646f636b65722d736563726574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/corbosman/laravel-docker-secrets)[![Total Downloads](https://camo.githubusercontent.com/5901a80ef7406be9f6118d3f16955ffbab0d3fac22b2557b7a01370e9d2cd053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f72626f736d616e2f6c61726176656c2d646f636b65722d736563726574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/corbosman/laravel-docker-secrets)[![Build](https://github.com/corbosman/laravel-docker-secrets/workflows/build/badge.svg?branch=main)](https://github.com/corbosman/laravel-docker-secrets/workflows/build/badge.svg?branch=main)

This package allows you to use docker swarm secrets in your Laravel config files. Note there are some limitations, see the usage below.

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

[](#installation)

Via Composer

```
$ composer require corbosman/laravel-docker-secrets
```

Usage
-----

[](#usage)

This package provides two helper methods that you can use in your laravel config files. Due to the way Laravel parses the config files, you can only use them in the env() method. In practice this is almost always exactly what you want, as it allows you to override the secrets locally for development.

```
