Laravel Installer v5.31.0: New `laravel package` Command | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://www.msaied.com/public) - [Home](https://www.msaied.com/public)
- [Projects](https://www.msaied.com/public/projects)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [About](https://www.msaied.com/public#about)

           [  Contact](https://www.msaied.com/public#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://www.msaied.com/public)
- [ProjectsCase studies](https://www.msaied.com/public/projects)
- [ArticlesEngineering notes](https://www.msaied.com/public/articles)
- [CertificatesCredentials](https://www.msaied.com/public/certificates)
- [AboutHow I work](https://www.msaied.com/public#about)
- [ContactGet in touch](https://www.msaied.com/public#contact)

  [Start a conversation](https://www.msaied.com/public#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://www.msaied.com/public)
2. /
3. [Articles](https://www.msaied.com/public/articles)
4. /
5. [Laravel](https://www.msaied.com/public/articles?category=laravel)
6. /
7. Scaffold Laravel Packages with the `laravel package` Command in Installer v5.31.0

   [Laravel](https://www.msaied.com/public/articles?category=laravel) [Composer Pacakge](https://www.msaied.com/public/articles?category=composer-pacakge) 

 Scaffold Laravel Packages with the `laravel package` Command in Installer v5.31.0
==================================================================================

 Laravel Installer v5.31.0 introduces a `laravel package` command to scaffold packages from the CLI, automated PHP version matching for GitHub Actions, `--no-node` propagation, and a Windows queue listener fix.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://www.msaied.com/public#person) Published 20 Jul 2026 · Updated 20 Jul 2026 · 3 min read

ShareCopy linkCopied

 ![Scaffold Laravel Packages with the `laravel package` Command in Installer v5.31.0](https://cdn.msaied.com/449/522e744d3c7bae1f214c179a83ae5b88.png) 

  On this page +1. [Laravel Installer v5.31.0: What's New](#laravel-installer-v5310-whats-new)
2. [The laravel package Command](#the-codelaravel-packagecode-command)
3. [Feature Flags](#feature-flags)
4. [Metadata Options](#metadata-options)
5. [Automated PHP Version Matching for GitHub Actions](#automated-php-version-matching-for-github-actions)
6. [--no-node Propagation to Starter Kit Hooks](#code-no-nodecode-propagation-to-starter-kit-hooks)
7. [Fallback Prompt Output](#fallback-prompt-output)
8. [Windows Queue Listener Timeout Fix](#windows-queue-listener-timeout-fix)
9. [Upgrading](#upgrading)
10. [Key Takeaways](#key-takeaways)

 Laravel Installer v5.31.0: What's New
-------------------------------------

The Laravel team shipped Installer v5.31.0 on July 20, 2026, with several quality-of-life improvements for package authors and application developers alike. The headline feature is the new `laravel package` command, but the release also tightens CI configuration, improves Node-less workflows, and fixes a Windows-specific development issue.

---

The `laravel package` Command
-----------------------------

You can now scaffold a new Laravel package directly from the terminal without manually cloning a skeleton repository:

```bash
laravel package my-new-package

```

Under the hood, the command:

1. Clones the official [laravel/package-skeleton](https://github.com/laravel/package-skeleton) repository.
2. Cleans the git history so you start fresh.
3. Installs Composer dependencies.
4. Runs the skeleton's interactive configuration script.

### Feature Flags

Run the command interactively or pass flags to predefine which components to include:

| Flag | Purpose | |---|---| | `--config` | Include a config file | | `--routes` | Include routes | | `--views` | Include views | | `--translations` | Include translations | | `--migrations` | Include migrations | | `--assets` | Include assets | | `--commands` | Include Artisan commands | | `--facade` | Include a facade | | `--boost-skill` | Include a Laravel Boost skill |

### Metadata Options

You can also supply package metadata directly on the command line to skip interactive prompts:

```bash
laravel package my-new-package \
  --author-name="Jane Doe" \
  --author-email="jane@example.com" \
  --package-name="my-new-package" \
  --vendor-namespace="JaneDoe" \
  --package-description="A helpful Laravel package"

```

Available metadata flags include `--package-name-human`, `--class-name`, and the author/vendor options shown above. The command also integrates with the installer's non-interactive AI agent detection, making fully automated package scaffolding possible in CI or agentic workflows.

---

Automated PHP Version Matching for GitHub Actions
-------------------------------------------------

When you create a new project with a starter kit, the installer now reads the PHP version running on your local machine and writes that exact major.minor version into the generated `.github/workflows/tests.yml` file. Your CI pipeline will test against the same PHP version you develop with locally — no more manual edits to the workflow file after project creation.

---

`--no-node` Propagation to Starter Kit Hooks
--------------------------------------------

Passing `--no-node` to `laravel new` now sets a `LARAVEL_INSTALLER_NO_NODE=1` environment variable before any post-create starter kit hooks run. Starter kits that respect this variable can skip npm installs and other Node.js-dependent tasks automatically.

---

Fallback Prompt Output
----------------------

The installer now guards the call to `Laravel\Prompts\callout()` with an existence check. If the function is unavailable — for example, when an older version of Laravel Prompts is installed — output falls back to standard output instead of throwing a fatal error.

---

Windows Queue Listener Timeout Fix
----------------------------------

On Windows, the `dev` Composer script that runs concurrent processes during local development now passes `--timeout=0` to `php artisan queue:listen`. This prevents the queue listener from stopping unexpectedly mid-session.

---

Upgrading
---------

No breaking changes are expected. Update your globally installed installer with:

```bash
composer global update laravel/installer

```

---

Key Takeaways
-------------

- **`laravel package `** scaffolds a new package from `laravel/package-skeleton` in one command.
- Feature flags (`--config`, `--migrations`, `--facade`, etc.) let you define the package structure upfront.
- Metadata flags eliminate interactive prompts, enabling fully automated or AI-driven package creation.
- GitHub Actions workflows now automatically mirror your local PHP version.
- `--no-node` is now propagated to starter kit hooks via an environment variable.
- Windows developers get a stable queue listener in the `dev` script.

---

*Source: [Laravel News — Scaffold Packages with the `laravel package` Command in Laravel Installer v5.31.0](https://laravel-news.com/laravel-installer-5-31-0)*

- [Laravel Installer](https://www.msaied.com/public/articles?search=Laravel%20Installer)
- [Package Development](https://www.msaied.com/public/articles?search=Package%20Development)
- [CLI](https://www.msaied.com/public/articles?search=CLI)
- [GitHub Actions](https://www.msaied.com/public/articles?search=GitHub%20Actions)
- [Laravel](https://www.msaied.com/public/articles?search=Laravel)

 Frequently asked questions 
---------------------------

  What does the `laravel package` command do in Laravel Installer v5.31.0?It clones the official `laravel/package-skeleton` repository, clears the git history, installs Composer dependencies, and runs the skeleton's configuration script — all in a single CLI command. You can pass feature flags like `--migrations` or `--facade` and metadata options like `--author-name` to automate the setup.

   How do I update to Laravel Installer v5.31.0?Run `composer global update laravel/installer` in your terminal. No breaking changes are expected for typical applications.

   What does the `--no-node` flag propagation mean for starter kits?When you run `laravel new` with `--no-node`, the installer sets a `LARAVEL\_INSTALLER\_NO\_NODE=1` environment variable before executing any post-create starter kit hooks. Starter kits that check for this variable can then skip npm installs and other Node.js-related tasks automatically.

   ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)About the author
----------------

[Mohamed Said](https://www.msaied.com/public#person)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

[About](https://www.msaied.com/public#about) [GitHub ↗](https://github.com/EG-Mohamed) [LinkedIn ↗](https://www.linkedin.com/in/msaiedm/) [WhatsApp ↗](https://wa.me/201094619204) [Email Address ↗](mailto:hello@msaied.com) [My CV ↗](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)  

   [Previous articleCQRS in Laravel Without a Framework: Commands, Handlers, and Read Models That Stay Lean](https://www.msaied.com/public/articles/cqrs-in-laravel-without-a-framework-commands-handlers-and-read-models-that-stay-lean) [Next articleLaravel SMS Catcher: A Local Dashboard for SMS Notifications](https://www.msaied.com/public/articles/laravel-sms-catcher-a-local-dashboard-for-sms-notifications)  

   On this page
-------------

1. [Laravel Installer v5.31.0: What's New](#laravel-installer-v5310-whats-new)
2. [The laravel package Command](#the-codelaravel-packagecode-command)
3. [Feature Flags](#feature-flags)
4. [Metadata Options](#metadata-options)
5. [Automated PHP Version Matching for GitHub Actions](#automated-php-version-matching-for-github-actions)
6. [--no-node Propagation to Starter Kit Hooks](#code-no-nodecode-propagation-to-starter-kit-hooks)
7. [Fallback Prompt Output](#fallback-prompt-output)
8. [Windows Queue Listener Timeout Fix](#windows-queue-listener-timeout-fix)
9. [Upgrading](#upgrading)
10. [Key Takeaways](#key-takeaways)

 ###  Have a technical challenge?

 Tell me what you’re building. I reply within two working days.

[Start a conversation](https://www.msaied.com/public#contact) 

   Related articles
-----------------

 [ ![](https://cdn.msaied.com/740/cce86edc21eddcbdd2f2454fadaf9c70.png)  · 3 min read### The Pipeline Pattern in Laravel: Custom Pipelines Beyond Middleware

5 Oct 2026 ](https://www.msaied.com/public/articles/the-pipeline-pattern-in-laravel-custom-pipelines-beyond-middleware-1) [ ![](https://cdn.msaied.com/739/2d6897fdcdcf090613f96f72a64b8a78.png)  · 4 min read### MySQL Full-Text Search in Laravel: Indexes, Relevance Scoring, and Boolean Mode

4 Oct 2026 ](https://www.msaied.com/public/articles/mysql-full-text-search-in-laravel-indexes-relevance-scoring-and-boolean-mode) [ ![](https://cdn.msaied.com/738/073696a3fefe18bec825beec5ac658f5.png)  · 4 min read### Laravel Queue Rate-Limited Middleware: Throttling Jobs Without Losing Work

4 Oct 2026 ](https://www.msaied.com/public/articles/laravel-queue-rate-limited-middleware-throttling-jobs-without-losing-work) 

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://www.msaied.com/public#contact) 

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://www.msaied.com/public)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://www.msaied.com/public/sitemap.xml)
