A Laravel package for Oracle database users, allowing seamless management of database-linked tables and aliases with automated first-call handling and dynamic aliasing.
rishadblack/oracle-table-linker is a Laravel package for a laravel package for oracle database users, allowing seamless management of database-linked tables and aliases with automated first-call handling and dynamic aliasing..
It currently has 1 GitHub stars and 22 downloads on Packagist (latest version 1.1.7).
Install it with composer require rishadblack/oracle-table-linker.
Discover more Laravel packages by rishadblack
or browse all Laravel packages to compare alternatives.
Last updated
Oracle Table Linker is a Laravel package specifically designed for managing database-linked tables and aliases in Oracle databases. This package provides a convenient trait that simplifies the handling of table names and aliases, ensuring seamless integration with Laravel models.
Oracle Table Linker enhances Laravel's capabilities by allowing developers to manage database-linked tables more efficiently. The package provides a trait, HasDbLink, which handles dynamic aliasing and first-call handling. This feature is particularly useful for Oracle databases where table names may include database links.
To install Oracle Table Linker, use Composer to add it to your Laravel project. Run the following command:
composer require rishadblack/oracle-table-linker
This package uses Laravel's automatic package discovery, so no additional configuration is required. Once installed, it will be automatically discovered and registered in your Laravel application. Adding the Trait to a Model
You can add the HasDbLink trait to your model either manually or using the Artisan command.
To add the trait manually, include the following line at the top of your model file:
use Rishadblack\OracleTableLinker\Traits\HasDbLink;
Then, add the HasDbLink trait to the class:
class YourModel extends Model
{
use HasDbLink;
}
You can also use the Artisan command to automatically add the trait to your model. Run the following command:
php artisan model:dblink YourModel
Replace YourModel with the name of your model. This command will add the HasDbLink trait to the specified model.