PHPackages                             yjtec/laravel-makerepo - 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. yjtec/laravel-makerepo

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

yjtec/laravel-makerepo
======================

laravel make repoi

1.0.6(5y ago)14.7kMIT

Since May 15Compare

[ Source](https://github.com/yjtec/laravel-makerepo)[ Packagist](https://packagist.org/packages/yjtec/laravel-makerepo)[ RSS](/packages/yjtec-laravel-makerepo/feed)WikiDiscussions Synced 2d ago

READMEChangelog (1)DependenciesVersions (8)Used By (0)

\#命令

1.创建interface命令
---------------

[](#1创建interface命令)

```
php artisan make:repoi TestInterface

```

生成TestInterface文件

### 参数 -r

[](#参数--r)

```
php artisan make:repoi TestInterface -r

```

同时生成 TestRepository文件

2.生成repository文件
----------------

[](#2生成repository文件)

```
php artisan make:repo TestRepository

```

生成repository文件

### 参数 -m modelname

[](#参数--m-modelname)

```
php artisan make:repo TestRepository -m TestModel

```

指定model的名称，不能包含model的路径

### 参数 -i test

[](#参数--i-test)

```
php artisan make:repo TestRepository -i Test

```

指定interface为testInterface

基类() Repository方法
=================

[](#基类-repository方法)

1.1 index($where)
-----------------

[](#11-indexwhere)

> 获取符合条件的第一条数据

1.2 update($where,$data)
------------------------

[](#12-updatewheredata)

> 更新符合条件的数据

1.3 page($page)
---------------

[](#13-pagepage)

> 分页数据

1.4 add($data)
--------------

[](#14-adddata)

> 新增数据，返回新增的模型

1.5findByField($field,$value)
-----------------------------

[](#15findbyfieldfieldvalue)

> 查找符合field条件的第一条数据

1.6 list($where)
----------------

[](#16-listwhere)

> 查找符合条件的数据 返回全部

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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.

###  Release Activity

Cadence

Every ~117 days

Recently: every ~172 days

Total

7

Last Release

1901d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48311842?v=4)[Yjtec](/maintainers/Yjtec)[@yjtec](https://github.com/yjtec)

### Embed Badge

![Health badge](/badges/yjtec-laravel-makerepo/health.svg)

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

PHPackages © 2026

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