yjtec/laravel-makerepo is a Laravel package for laravel make repoi.
It currently has 1 GitHub stars and 4.745 downloads on Packagist (latest version 1.0.6).
Install it with composer require yjtec/laravel-makerepo.
Discover more Laravel packages by yjtec
or browse all Laravel packages to compare alternatives.
Last updated
#命令
php artisan make:repoi TestInterface
生成TestInterface文件
php artisan make:repoi TestInterface -r
同时生成 TestRepository文件
php artisan make:repo TestRepository
生成repository文件
php artisan make:repo TestRepository -m TestModel
指定model的名称,不能包含model的路径
php artisan make:repo TestRepository -i Test
指定interface为testInterface
获取符合条件的第一条数据
更新符合条件的数据
分页数据
新增数据,返回新增的模型
查找符合field条件的第一条数据
查找符合条件的数据 返回全部