Add an artisan command to output the javascript to a file for inclusion
See original GitHub issueIn case someone wanted to add this to their build process, we could have a command:
php artisan ziggy:generate
which saves the output of the script into a file wrapped in an importable module.
We could even include a sample watcher so your build tool watches the routes files for changes and then re-runs the command when necessary.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Artisan Console - Laravel - The PHP Framework For Web ...
You can publish Tinker's configuration file using the vendor:publish command: php artisan vendor:publish --provider="Laravel\Tinker\TinkerServiceProvider".
Read more >Laravel php artisan command error - Laracasts
I have tried. Now i see files of symphony/console/output folder is corrupted. These files are not readable anymore. What should I do ?...
Read more >php artisan commands returning output by attaching dot ...
When I run an artisan command like php artisan --version , It gives output by attaching '. ... Due to this in each...
Read more >How to Remotely Run Commands on an EC2 Instance ... - AWS
On the Add permissions page, in the search bar type AmazonEC2RoleforSSM. From the policy list select AmazonEC2RoleforSSM and then choose Next.
Read more >Documentation - Atlantis CMS | Built with Laravel
php artisan atlantis:install - this will ask you whether to run ... The artisan command will generate a validation file for you with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ctf0 Same issue. It’s easy enough (although requires you to allow them to customize WHICH files are the routes files) to have PHP check a route file to see if it has changed since the last time it was checked.
But what’s not built in to Laravel–other than in Elixir/Mix, which already have tooling for this–is watching files for modifications.
Don’t stress. This is actually going to be relatively simple–you’ll love it once you see it. We just need to write it. 😃
@DanielCoulbourne Cool. Glad it’s useful, it was fun to work on. 😃