guntur/laravel-artisan-database

Get the table records from artisan

Installs: 174

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/guntur/laravel-artisan-database

v1.0.1 2017-03-14 04:02 UTC

This package is not auto-updated.

Last update: 2025-09-28 07:07:08 UTC


README

Get the table records from artisan

Prerequisites

Installation

$ composer require --dev 'guntur/laravel-artisan-database'

Usage

Register Command

Update the app/Console/Kernel.php like this.

<?php

namespace App\Console;

use Guntur\Artisan as Art;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        Art\DatabaseTableCommand::class,
    ];

    // ...
}

Artisan

❯ php artisan db:table --help
Usage:
  db:table [options] [--] <table>

Arguments:
  table                  The table name

Options:
      --fields[=FIELDS]  Select with the specified field. Separate with `,` for multiple fields [default: "all"]
  -h, --help             Display this help message
  # ...

Help:
  Show the records of table

Contributions

  • Pull Requests and Issues: welcome

Please teach me for your PRs. 😄

License

MIT © Guntur Poetra