Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/iguntur/laravel-artisan-database
- Owner: iguntur
- License: mit
- Created: 2017-03-14T01:52:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T04:03:28.000Z (almost 8 years ago)
- Last Synced: 2024-04-27T12:21:28.902Z (9 months ago)
- Topics: artisan, database, debug, laravel, mysql, package, sqlite
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 nameOptions:
--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)