承接 defabr13k/laravel-cogs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

defabr13k/laravel-cogs

Composer 安装命令:

composer require defabr13k/laravel-cogs

包简介

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

README 文档

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

Artisan Console Command Functionality
cogs:db:backup Dumps the database to SQL file for backup.
cogs:db:drop Drops the database.
cogs:db:init Creates a database user and the database, and executes migrations.
cogs:db:reset Drops the database and runs cogs:db:init.
cogs:db:restore Restores database from most recent SQL dump.
cogs:db:user Creates a database user as specified in the configuration.

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.

统计信息

  • 总下载量: 73
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固