PHPackages                             alvarofpp/expand-database - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. alvarofpp/expand-database

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

alvarofpp/expand-database
=========================

A package to make your database more powerful

1.2.0(5y ago)2337MITPHPPHP &gt;=7.2.0

Since May 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alvarofpp/laravel-expand-database)[ Packagist](https://packagist.org/packages/alvarofpp/expand-database)[ Docs](https://github.com/alvarofpp/laravel-expand-database)[ RSS](/packages/alvarofpp-expand-database/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

expand-database
===============

[](#expand-database)

[![Packagist Version](https://camo.githubusercontent.com/6e7231f64f39c828a3113f6331f813a0a6a046c29841850d1bd638299654d465/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7661726f6670702f657870616e642d6461746162617365)](https://packagist.org/packages/alvarofpp/expand-database)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/alvarofpp/laravel-expand-database/blob/master/LICENSE)

A package to make your database more powerful.

Contents
--------

[](#contents)

- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)

Install
-------

[](#install)

Install via composer:

```
composer require alvarofpp/expand-database
```

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. But if you don't use auto-discovery, open the `config/app.php` file and add the following line to register the service provider:

```
'providers' => [
    // ...

    Alvarofpp\ExpandDatabase\ExpandDatabaseServiceProvider::class,

    // ...
],
```

Usage
-----

[](#usage)

This package currently contains:

- Table comment (MySQL/PostgreSQL).
- To Sql with bindings.

### Table comment

[](#table-comment)

Add a comment to a table (MySQL/PostgreSQL). Use the method `comment` in your Blueprint object, like:

```
