PHP code example of idrislab / laravel-docker-containers
1. Go to this page and download the library: Download idrislab/laravel-docker-containers library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
idrislab / laravel-docker-containers example snippets
namespace App\Console\Commands;
use luisgros\docker\containers\MySQL;
use luisgros\docker\containers\Redis;
use luisgros\docker\ContainersCommand;
class Containers extends ContainersCommand
{
protected $containers = [
MySQL::class,
Redis::class,
];
}
namespace App\Console\Commands;
use App\Containers\MySQLGroupReplication;
use luisgros\docker\containers\MySQL;
use luisgros\docker\containers\Redis;
use luisgros\docker\ContainersCommand;
class Containers extends ContainersCommand
{
protected $containers = [
MySQL::class,
Redis::class,
MySQLGroupReplication::class,
];
}