make:package) and integrating seamlessly with Laravel’s conventions (e.g., service providers, config files, and testing). This aligns well with Laravel-centric projects where package development is a core workflow.--with-tests), making it adaptable to varying package requirements (e.g., CLI tools, API packages, or UI components).php artisan make:package) reduces integration overhead. No database migrations or complex dependencies are required.stubs/) or extending the package’s stub paths. This avoids vendor lock-in.{{PACKAGE_NAME}}).stubs/ template library for common Laravel package patterns (e.g., API resources, jobs).illuminate/support) are Laravel-specific. Risk: Conflicts may arise if used in non-Laravel PHP projects (though this is unlikely given the target audience).
--with-tests flag generate Pest or PHPUnit tests by default? Can this be customized?composer install in the new package)?.editorconfig or phpunit.xml).stubs/ directory or extend the package’s template paths via config.// config/package-generator.php
'stub_paths' => [
__DIR__.'/../custom-stubs',
],
package:new Makefile task or GitHub template for new repositories.package:new:
php artisan make:package vendor/package-name --with-tests
cd package-name && composer install
bootstrap/app.php vs. bootstrap/app.php in older versions).post-install-cmd, ensure it doesn’t conflict with project-level scripts.CHANGELOG.md, .gitignore).require-dev).make:package command in the team’s runbook.--with-tests is used) to refine defaults.src/Console/ directory).make:package as a backup (though it lacks customization).make:package).--force.illuminate/support version mismatch).composer.json.stub_paths in config and file permissions.src/Commands/ directory).How can I help you explore Laravel packages today?