“Open on Make” is a neat little package by Andrew Huggins that makes it easy to have newly created files open in your editor of choice.
When you run commands like
php artisan make:controller, this package will listen for the command and open the file in the editor that you configure.
To configure your command to open in your editor of choice, you can configure the following environment variables, or publish the configuration:
OPEN_ON_MAKE_EDITOR=code # Optionally set some flags, i.e. OPEN_ON_MAKE_FLAGS="--reuse-window"
While writing about this, I opened a PR to disable the listener via configuration that was accepted yesterday.
open-on-make.enabled configuration option allows you to explicitly disable the package in a given environment, or in cases where a team member cannot use it for whatever reason:
Being able to disable the package will be helpful in a team setting where not everyone might not have the same preferences or if you have some other reason to disable it in a given environment.
To give this package a try in your project, head over to the GitHub repo or install it with
composer require --dev ahuggins/open-on-make.
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Full-Stack Developer
Nu Image Medical
- Senior Software Developer
Remote (US ONLY)/Kenilworth, NJ
- Senior Back-end Laravel API Developer - Immediate Contract (Full Time)
ApproveMe // Document Signing
- Web Development Project Manager
- Experienced Laravel/VueJS Developer (Freelance)
Remote (preferably in the US)
- Senior React / Laravel Developer
The C.A.S.E. Engineering Group
- Software Engineer
PHPConsole is a Programming and Live Coding Companion
PHPConsole is a neat Windows desktop application GUI for writing, reading, and executing PHP code by Josiah Ovye Yaha…
Laravel Eloquent Status Package
The Laravel Eloquent Status package by Rasmus Christoffer Nielsen is a package that helps you check the state and sta…