Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iguntur/laravel-artisan-database

Get the table records from artisan console
https://github.com/iguntur/laravel-artisan-database

artisan database debug laravel mysql package sqlite

Last synced: 2 months ago
JSON representation

Get the table records from artisan console

Awesome Lists containing this project

README

        

# Laravel Artisan Database Command

> Get the table records from artisan

## Prerequisites

- [PHP](http://php.net): `>=5.6`

- [Laravel](https://laravel.com): `>=5.4`

## Installation

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

## Usage

### Register Command

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

```php

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. :smile:

## License

MIT © [Guntur Poetra](http://guntur.starmediateknik.com)