New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

getghostr/cockroachdb-laravel

Simple CockroachDB driver for Laravel 6+
9,484 2

Larablocks Analysis

getghostr/cockroachdb-laravel works with Laravel 6 to 10 (latest release v0.5.0, Apr 28, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6 to 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Apr 28, 2023)
  • 9 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 28, 2023.
  • No releases in the last 12 months.
  • First released: Jan 28, 2021.
  • Monthly downloads: 9.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 5, 2026.

Install
composer require getghostr/cockroachdb-laravel
Latest Version:v0.5.0
PHP:^7.4|^8.0
Laravel:6 – 10
License:MIT
Last Updated:Apr 28, 2023
Links: GitHub  ·  Packagist
Maintainer: J0sh0nat0r

cockroachdb-laravel

Latest Version on Packagist Total Downloads

Simple CockroachDB driver for Laravel 6+

Installation

You can install the package via composer:

composer require getghostr/cockroachdb-laravel

Usage

Step 1

If you're not using package discovery please add the following to your providers array in config/app.php:

Ghostr\Cockroach\CockroachServiceProvider::class,

Step 2

Head over to your config/database.php and add the following to your connections array:

'cockroach' => [
    'driver' => 'cockroach',
    'url' => env('DATABASE_URL'),
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', '5432'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'charset' => 'utf8',
    'prefix' => '',
    'prefix_indexes' => true,
    'schema' => 'public',
    'sslmode' => 'prefer',
],

Special features

Index stored columns

This package adds support for index stored columns
They can be declared in migrations like so:

Schema::table('my_table', function (Blueprint $table) {
    // Single stored column
    $table->index('col1')->storing('col2');
    
    // Multiple stored columns
    $table->index('col1')->storing(['col2', 'col3'])
})

NOTE: Index name generation is unaffected by stored columns

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

Related Packages

sofa/hookable

Laravel Eloquent hooks system.

2,059,111 64
volosyuk/simple-eloquent

Adaptation of eloquent for retrieving its attributes

119,868 55
gzero/eloquent-tree

Eloquent Tree is a tree model for Laravel Eloquent ORM.

60,021 131
martinbean/laravel-sluggable-trait

A trait you can apply to Eloquent models to have slugs automatically generated o...

49,264 24
isswp101/elasticsearch-eloquent

Elasticsearch functionality like Laravel Eloquent models.

26,556 112

Version History

Version Released PHP Laravel License
v0.5.0 ^7.4|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v0.4.1 ^7.4|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
v0.4.0 ^7.4|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
v0.3.0 ^7.4|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
v0.2.0 ^7.4|^8.0 ^6.0|^7.0|^8.0 MIT