sdon2 / laravel-dynamic-model
Laravel Dynamic Model
v1.0.7
2023-01-13 11:43 UTC
Requires
- php: >=7.4|>=8.0|>=8.1|>=8.2
- laravel/framework: ^5.3|^6.0|^7.0|^8.0|^9.0
This package is auto-updated.
Last update: 2024-11-13 15:57:04 UTC
README
Dynamic Model for Laravel =========================== Install: composer require sdon2/laravel-dynamic-model Important Note: It requires doctrine/dbal package to be installed. Now you can access dynamic tables by extending DynamicModel using the constructor. Example: use Sdon2\Laravel\DynamicModel; class SampleTable extends DynamicModel { public function __construct($attributes = []) { parent::__construct('dynamic_table_1', $attributes); } } Refer: https://github.com/sdon2/laravel-dynamic-model