Menu

## BaseCommand extends Command
in package

BaseCommand.php : 15

This is the base command class, it extends the Symfony console command class and provides some helper methods that can be used in all commands. All commands should extend this class.

### Table of Contents

#### Methods

__construct() : mixed
connection() : Database
  Returns the current database connection

### Methods

#### __construct()

BaseCommand.php : 18
`public __construct([string|null $name = null ]) : mixed`

##### Parameters

$name : string|null = null

#### connection()

BaseCommand.php : 32

Returns the current database connection

`protected static connection([string|null $db = null ]) : Database`

##### Parameters

$db : string|null = null

##### Tags

throws
  Exception
author

  Jet - ezrajet9@gmail.com

##### Return values

Database

## Search results