Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Run artisan command on route files changes #5

Open
nikos-ioannidis opened this issue Nov 19, 2020 · 2 comments
Open

Run artisan command on route files changes #5

nikos-ioannidis opened this issue Nov 19, 2020 · 2 comments

Comments

@nikos-ioannidis
Copy link

Hello there,

I just wondering if there is any way so on any changes in route files (web.php etc) to run php artisan command on save.

Thanks in advance

@halivert
Copy link
Owner

Hello,
I'm sorry, I think you can trigger a git hook on save but I don't know how to do it, I hope someone could help

@dansleboby
Copy link
Contributor

You can install this: https://github.com/doowb/watch-cli

And run
watch -p "routes/web.php" -c "php artisan route:tojs -f"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants