d-scribe/laravel-db-command

A laravel command for database operations

Installs: 152

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/d-scribe/laravel-db-command

v1.0.0 2021-12-28 12:15 UTC

This package is auto-updated.

Last update: 2025-09-28 21:40:02 UTC


README

A laravel command for database operations

Introduction

This package creates a simple way to access and manipulate the application's database from the terminal.

Usage

Run php artisan db:table -h to view list of functions.

Examples

  • Create: php artisan db:table users -c --data=first_name:Ezra,last_name:Obiwale,status:3
  • Read: php artisan db:table users --where=first_name:=:Ezra,status:=:3,deleted_at:null
  • Update: php artisan db:table users -u --where=id:=:3 --data=status:4
  • Delete: php artisan db:table users -d --where=id:=:3