Generate ziggy.js file from specific route.php file #503
Answered
by
bakerkretzmar
aleksandar-atanasov
asked this question in
Q&A
-
Is there an option to pass an additional parameter to php artisan ziggy:generate and pass specific php routes file like admin.php and generate only the routes from that file not all the routes files inside the routes directory? |
Beta Was this translation helpful? Give feedback.
Answered by
bakerkretzmar
Jan 20, 2022
Replies: 1 comment 2 replies
-
Yeah, configure a route group and then pass it to the command with the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bakerkretzmar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, configure a route group and then pass it to the command with the
--group
option. You can't point it to a specific file but if all those route names start withadmin.
or something it'll be very simple to set up.