linchaker/dev-commands

Laravel dev commands

v1.0.0 2023-01-29 17:36 UTC

This package is auto-updated.

Last update: 2024-05-29 04:37:23 UTC


README

A list of console commands that help in the setup/development of the Laravel project.

Installation

This package can be installed through Composer.

composer require linchaker/dev-commands

Usage

Check Database connection

Check if the database connection is configured correctly.

Default connection is mysql

php artisan check:db

Check connection to another database:

php artisan check:db pgsql

Check Redis connection

Check if the redis connection is configured correctly.

Default connection is "default"

php artisan check:redis

Check another connection:

php artisan check:redis cache

Generate PHPDoc for model's table

Creates a PHPDoc for some table and prints it to the console.

For example, create documentation for the "users" table:

php artisan gen:phpdoc users

Default DB connection is mysql, if you need another connection, pass it as second argument:

php artisan gen:phpdoc users pgsql

License

The MIT License (MIT). Please see License File for more information.