defabr13k/laravel-cogs

Cogs for Laravel is a Composer package that adds handy Artisan Console Commands for MySQL database administration.

Installs: 71

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:laravel-5-package

v1.0.0 2017-06-14 20:55 UTC

This package is not auto-updated.

Last update: 2024-09-15 03:13:46 UTC


README

Cogs for Laravel is a Composer package that adds handy Artisan Console Commands for MySQL database administration.

WARNING

Be aware that these Artisan Console Commands are meant for use on an disposable local development environments such as a Homestead environment. They may introduce potentially serious security risks when used in a production environment!

Features

Configuration

In .env there's already this:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

You have to add DB_ADMIN_USERNAME, DB_ADMIN_PASSWORD, and DB_DUMP_PATH as well, e.g.:

DB_ADMIN_USERNAME=homestead
DB_ADMIN_PASSWORD=secret
DB_DUMP_PATH=database/dumps

Installation

Install the latest release

$ composer require --dev defabr13k/laravel-cogs

Install the latest development version

$ composer require --dev defabr13k/laravel-cogs=@dev

Prior to Laravel 5.5 you also need to add the following to app/config/app.php:

<?php

…

        /*
         * Package Service Providers...
         */
        Laravel\Tinker\TinkerServiceProvider::class,
        DeFabr13k\Cogs\CogsServiceProvider::class,

…

Author

Olivier Parent is co-founder of deFABR13K and a lecturer in Web & New Media at Artevelde University College Ghent.