leofranca47 / abstract-repository-eloquent-laravel
这是一个PHP类,其中包含可以在Eloquent中调用的方法。它用于创建仓库并简化单元测试,同时不损失Eloquent的功能 - 这是一个PHP类,其中包含可以在Eloquent中调用的方法。它用于创建响应并简化单元测试,同时不损失Eloquent的功能
v1.0.0
2023-01-13 13:25 UTC
README
这是一个PHP类,其中包含可以在"Eloquent"中调用的方法。它用于创建仓库并简化单元测试,同时不损失"Eloquent"的功能
This is a php class where it has methods that can be called equal in Eloquent. It serves to create responses and facilitate unit tests without losing the power of the Eloquent
使用
要使用此类,需要创建一个具体类并从我们的类扩展。在具体类中,需要创建在抽象类中实现的方法,以下是一个示例
要使用此类,需要创建一个具体类并从我们的类扩展。在具体类中,需要创建在抽象类中实现的方法,以下是一个示例
protected function resolveModel(): Model
{
return app(Model::class);
}
安装
composer require leofranca47/abstract-repository-eloquent-laravel