jasonbaciulis/bedrock-commands
A collection of handy console commands for the Bedrock stack, streamlining common development tasks from the CLI with practical, time-saving utilities for your workflow.
composer require <vendor>/bedrock-commands
php artisan vendor:publish --tag=bedrock-commands-config
php artisan vendor:publish --tag=bedrock-commands-stubs
blocks.yaml, article.yaml), where fieldsets and views are written, and what naming/stub conventions the commands assume. Getting these paths right is what makes every other command "just work".php artisan make:bedrock-set, which appends the set to the correct YAML field, generates its fieldset definition and creates its Blade view in one step. Commit all three artefacts together — that triad (YAML entry + fieldset + view) is the unit of work in this package.make:bedrock-block / make:bedrock-set as generators only. Run them, review the diff to confirm the YAML insertion point and view path, then fill in the fields. Avoid hand-editing the YAML for new sets unless you have a reason — inconsistent indentation and ordering is the main source of breakage.rename:* for refactors, not find-and-replace. When a set name changes, rename:bedrock-set updates the YAML, renames the fieldset and view, and rewrites every entry that stored that set — a manual rename across a database is error-prone and easy to leave half-done. Use the optional group-move flag in the same operation when you are reorganising which field a set belongs to.delete:* as the inverse of make:*. Removing a set should always be a single command so the field entry, fieldset file, view and stored entry data are all cleaned up together. Pair it with a review of any Blade templates that referenced the view directly.blocks.yaml / article.yaml are resolvable, and so rename/delete diffs are easy to audit in review.make:* will inherit your conventions.artisan batch.delete:* and rename:* mutate stored content. They remove values from all entries and rewrite references respectively. Take a database snapshot, run against a staging copy first, and confirm the command reports what it changed before pointing it at production.bedrock-commands-config, run php artisan config:clear (or re-cache) — otherwise the commands may keep writing fieldsets and views to the old locations, silently creating duplicates.bedrock-commands-stubs and republish selectively.make:*, but verify state by hand after any interrupted rename/delete.How can I help you explore Laravel packages today?