Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ziggy:generate path for Laravel 5.7+ #269

Merged
merged 3 commits into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ route('home').url()

Ziggy publishes an artisan command to generate a `ziggy.js` routes file, which can be used as part of an asset pipeline such as [Laravel Mix](https://laravel.com/docs/mix).

You can run `php artisan ziggy:generate` in your project to generate a static routes file in `resources/assets/js/ziggy.js`.
You can run `php artisan ziggy:generate` in your project to generate a static routes file in `resources/js/ziggy.js`.

Optionally, include a second parameter to override the path and file names (you must pass a file name with the path):

Expand Down
4 changes: 2 additions & 2 deletions src/CommandRouteGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class CommandRouteGenerator extends Command
{
protected $signature = 'ziggy:generate {path=./resources/assets/js/ziggy.js} {--url=/} {--group=}';
protected $signature = 'ziggy:generate {path=./resources/js/ziggy.js} {--url=/} {--group=}';

protected $description = 'Generate js file for including in build process';

Expand Down Expand Up @@ -38,7 +38,7 @@ public function handle()
$this->makeDirectory($path);

$this->files->put($path, $generatedRoutes);

$this->info('File generated!');
}

Expand Down