shlok/maker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shlok/maker

最新稳定版本:0.0.1

Composer 安装命令:

composer require shlok/maker

包简介

This is a laravel repository generator.

README 文档

README

GitHub issues GitHub forks GitHub stars GitHub license

🚀 Overview

This repository offers a ready-to-use implementation of the Repository Pattern in Laravel. The repository pattern separates the logic that retrieves data from a model and allows for better flexibility and scalability when interacting with databases.

🌟 Requirements

  • PHP ^8.x
  • Laravel ^8.x

✨ Suggestion

  • It's recommended to start with a fresh Laravel project when using this repository pattern template, but integration into existing projects is seamless as well.

📦 How To Install

Install this package effortlessly using Composer:

composer require shlok/maker

🛠️ Features

  • Repository Pattern: A clean, modular implementation of the Repository Pattern for abstracting database queries and data access.

  • Single Responsibility: Keeps your controllers lightweight by moving database logic to repositories.

  • Service Layer Integration: Easily integrate with a service layer for better logic handling.

  • Model/Models Creation: You can create one or multiple models, along with their migrations and controllers, using a single command.

  • Repository/Repositories Creation: You can create one or multiple repositories for multiple models using a single command. For instance, to create just a single repository.

  • Unit Testable: The repository pattern makes your database interactions easier to test in isolation.

🚀 What Happens After Installing This Package?

  • The php artisan make:model command has undergone a luxurious transformation, featuring an added repository pattern.

    • Command Excellence:
      php artisan make:model ExampleModel -m
      php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -m
      php artisan make:model ExampleModel -mc
      php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -mc
      php artisan make:model ExampleModel -mcr
      php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -mcr
  • The php artisan make:repository command has undergone a luxurious transformation, featuring an added repository pattern.

    • Command Excellence:

      php artisan make:repository ExampleModel
      php artisan make:repository ExampleModel1 ExampleModel2 ExampleModel3

      Enjoy the ability to create a single model or multiple models at once, complete with migration/migrations. The system gracefully prompts you, inquiring if you wish to create a repository alongside the model.

Embark on your Laravel journey with the elegance and sophistication of Laravel Boiler Template! 🌟 Add stars, fork the project, and engage with the community. 🚀

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-25