PHPackages                             yoshikids/laravel-model - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yoshikids/laravel-model

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yoshikids/laravel-model
=======================

Yoshikids Components for Laravel Framework code generation.

02PHP

Since Aug 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yoshikids/laravel-model)[ Packagist](https://packagist.org/packages/yoshikids/laravel-model)[ RSS](/packages/yoshikids-laravel-model/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-model
=============

[](#laravel-model)

The Original Package is [Reliese Laravel](https://github.com/reliese/laravel).

Current Version is Beta.

Required Pecl Package:

- Memcached

This is Customized Package.

- for Multiple Primary Key
- Cached Object Instance(Like FuelPHP)

```
Model::fromPk(Pk);
Model::fromPk([multiplePK1, multiplePK2]);

```

How does it work?
-----------------

[](#how-does-it-work)

This package expects that you are using Laravel 5.1 or above. You will need to import the `yoshikids/laravel-model` package via composer:

```
composer require yoshikids/laravel-model
```

### Configuration

[](#configuration)

Add the service provider to your `config/app.php` file within the `providers` key:

```
// ...
'providers' => [
    /*
     * Package Service Providers...
     */
    \Yoshikids\Laravel\Providers\YoshikidsServiceProvider::class
],
// ...
```

### Configuration for local environment only

[](#configuration-for-local-environment-only)

If you wish to enable generators only for your local environment, you should install it via composer using the --dev option like this:

```
composer require yoshikids/laravel-models --dev
```

Then you'll need to register the provider in `app/Providers/AppServiceProvider.php` file.

```
public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register(YoshikidsServiceProvider::class);
    }
}
```

Models
------

[](#models)

Add the `models.php` configuration file to your `config` directory and clear the config cache:

```
php artisan vendor:publish --tag=yoshikids-models
php artisan config:clear
```

### Usage

[](#usage)

Assuming you have already configured your database, you are now all set to go.

- Let's scaffold some of your models from your default connection.

```
php artisan yoshikids:models
```

- You can scaffold a specific table like this:

```
php artisan yoshikids:models --table=users
```

- You can also specify the connection:

```
php artisan yoshikids:models --connection=mysql
```

- If you are using a MySQL database, you can specify which schema you want to scaffold:

```
php artisan yoshikids:models --schema=shop
```

### Customizing Model Scaffolding

[](#customizing-model-scaffolding)

To change the scaffolding behaviour you can make `config/models.php` configuration file fit your database needs. [Check it out](https://github.com/yoshikids/laravel-model/blob/master/config/models.php) ;-)

#### Support

[](#support)

For the time being, this package only supports MySQL databases.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc61615b5bff4a1ee50a1cdfd561f39eac2496ec29b45d698a56016c45aed540?d=identicon)[yoshikids](/maintainers/yoshikids)

### Embed Badge

![Health badge](/badges/yoshikids-laravel-model/health.svg)

```
[![Health](https://phpackages.com/badges/yoshikids-laravel-model/health.svg)](https://phpackages.com/packages/yoshikids-laravel-model)
```

###  Alternatives

[snicco/better-wp-hooks

1118.6k2](/packages/snicco-better-wp-hooks)[thalidzhokov/exchange-rates-cbrf

ExchangeRatesCBRF Class to get exchange rates of the Central Bank of Russia

102.7k](/packages/thalidzhokov-exchange-rates-cbrf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
