Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Makeservice

Makeservice Laravel Package

ikechukwukalu/makeservice

Laravel package that adds a make:service Artisan command to scaffold dedicated service classes, helping keep controllers and models lean by moving business logic into reusable, testable services. A lightweight way to organize application code and speed up development.

View on GitHub
Deep Wiki
Context7

A laravel package for scaffolding Service, Traits, Enums, Facades, Actions, Repository and Interface classes.

Frequently asked questions about Makeservice
How do I install ikechukwukalu/makeservice in a Laravel project?
Install it with Composer by running composer require ikechukwukalu/makeservice. Laravel's package auto-discovery registers the service provider, so you normally do not need to add a provider entry manually. Publish the package config with php artisan vendor:publish if you want to change the defaults. Once installed, the make:service command is available in your Artisan CLI.
What PHP and Laravel versions does makeservice v4 require?
v4.0.0 requires PHP 8.2 or newer and targets a modern Laravel line, with explicit Laravel 12 support. The CI matrix runs on PHP 8.2, 8.3 and 8.4 with Testbench 10 and PHPUnit 11. If a service is still on PHP 8.1 or an older Laravel major, Composer will likely refuse to resolve ^4.0.
What kinds of classes can the make:service command scaffold?
It scaffolds service classes along with traits, enums, facades, actions, repositories and interfaces. Each type has its own stub, so generated files follow a consistent structure. That makes it a fast way to create the full set of supporting classes around a domain concept instead of writing boilerplate by hand.
Can I customize the generated stubs, namespaces, or file paths?
Yes. The package ships a publishable configuration file, so you can publish it and adjust defaults such as namespaces and output directories. Stubs can also be tailored so generated classes match your project conventions, for example by adding strict types or a shared base class.
Does makeservice add runtime overhead or new infrastructure in production?
No. It is a development-time scaffolding tool that writes plain PHP class files and does not register runtime services, queue workers or daemons. After generation, the code is ordinary application code that you own and can edit freely. The only production behavior to review is whatever your own service classes do.
How do I test service classes generated by makeservice?
Generated services are plain classes, so you can instantiate them directly in unit tests or resolve them from the container and mock their dependencies. Feature tests can exercise the controllers and routes that call the services. If you depend on the package's test helpers, review your test setup when moving to PHPUnit 11, since a number of legacy behaviors were removed there.
How do I upgrade makeservice from v3 to v4, and what breaking changes should I expect?
v4.0.0 is a major release, and the documented changes are the PHP 8.2 floor and Laravel 12 support, but the changelog is very short and no UPGRADE.md is published. Read the v3 to v4 diff before committing, especially if you extend package classes, publish and modify the config, or use package test helpers. Move the PHP runtime and Laravel version first, then bump the package to ^4.0, and pin ^3.0 with a tracked review date for services that cannot move yet.
Can I use makeservice on Laravel 10, Laravel 11 or PHP 8.1?
Probably not with ^4.0, because this major version's constraints are PHP 8.2+ and Laravel 12, so Composer will typically block resolution on older runtimes and framework lines. Services that cannot upgrade this cycle should pin ^3.0 explicitly in composer.json. Record that pin as technical debt with an owner and a review date rather than leaving the constraint unpinned.
Is ikechukwukalu/makeservice actively maintained, and does v3.x still get security fixes?
The test matrix of Testbench 10, PHPUnit 11 and PHP 8.2 through 8.4, plus explicit Laravel 12 support, suggests an actively maintained package rather than a drive-by release. However, no EOL or security-backport commitment for v3.x is stated, which turns a 'we will upgrade later' decision into an unscheduled risk. Ask the maintainer how long v3.x will receive security fixes before depending on it.
What are the alternatives to makeservice for organizing business logic in Laravel?
You can use Laravel's built-in make:class command with published custom stubs, or write service classes by hand. Action-oriented and repository-pattern packages cover similar ground, but each brings its own conventions and upgrade cycle. makeservice's advantage is bundling service, trait, enum, facade, action, repository and interface stubs into one small, Laravel-native command with no runtime footprint.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections