PHPackages                             titasgailius/laravel-dotto - 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. titasgailius/laravel-dotto

ActiveLibrary

titasgailius/laravel-dotto
==========================

Laravel Dotto is a very simple yet highly optimized docker setup for your Laravel application.

02[3 PRs](https://github.com/TitasGailius/laravel-dotto/pulls)PHP

Since Sep 27Pushed 3y agoCompare

[ Source](https://github.com/TitasGailius/laravel-dotto)[ Packagist](https://packagist.org/packages/titasgailius/laravel-dotto)[ RSS](/packages/titasgailius-laravel-dotto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Laravel Dotto
=============

[](#laravel-dotto)

Dotto is a very simple yet highly optimized Laravel development environment setup powered by Docker.

 [![Dotto](./images/dotto.png)](./images/dotto.png)

Installation
============

[](#installation)

Install Dotto with composer:

```
composer require titasgailius/laravel-dotto --dev
```

Usage
=====

[](#usage)

Dotto automatically discovers, configures and starts the services required by your Laravel application.

```
php artisan dotto
```

Enter Container
---------------

[](#enter-container)

You may interact with the application container on the command line:

```
php artisan dotto:enter
```

Laravel Tinker
--------------

[](#laravel-tinker)

You may interact with your entire Laravel application on the command line:

```
php artisan dotto:tinker
```

Logs
----

[](#logs)

You may watch your application logs:

```
php artisan dotto:logs
```

---

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

[](#configuration)

You may customize the Dotto setup by publishing the `Dotto.yml` configuration file.

```
php artisan dotto:publish
```

### Database

[](#database)

Dotto automatically detects your default database connection and starts the appropriate services. Of course, You may override what database connection(s) are used by your application.

```
databases:
  - database-1
  - database-2
```

📍 By default, Dotto uses the database credentials defined in your `config/database.php` configuration file.
📍 The `host` of a database is the same as connection name.

### Cache

[](#cache)

You may override what cache backend(s) are used in your application.

```
caches:
  - redis
  - memcached
```

Currently supported cache backends: `redis`, `memchached`.

### Queues

[](#queues)

You may override what queue backend(s) are used in your application.

```
queues:
  - redis
  - beanstalkd
```

Currently supported queue backends: `redis`, `beabstalkd`.

### Extending

[](#extending)

You may instruct Dotto to merge the existing `docker-compose.yml` and `Dockerfile` files by running Dotto with the `--m` option (or `--merge`).

```
php artisan dotto --m
```

Additionally, you may call the `mergeDockerCompose` or `mergeDockerfile` methods in your `AppServiceProvider` to instruct Dotto to merge these files by default.

```
