question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an artisan command to output the javascript to a file for inclusion

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
mattstauffercommented, Aug 11, 2017

@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. 😃

0reactions
quickliketurtlecommented, Oct 20, 2017

@DanielCoulbourne Cool. Glad it’s useful, it was fun to work on. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found