Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Feb 3, 2025
1 parent 26a3028 commit 006dcfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions bin/sync
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ transform([
'User::factory()->create' => 'UserFactory::new()->create',
], fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/database/seeders/DatabaseSeeder.php"));

transform([
line('Artisan::command(\'inspire\', function () {
$this->comment(Inspiring::quote());
})->purpose(\'Display an inspiring quote\');') => line('// Artisan::command(\'inspire\', function () {
// transform([
// line('Artisan::command(\'inspire\', function () {
// $this->comment(Inspiring::quote());
// })->purpose(\'Display an inspiring quote\');'),
], static fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/routes/console.php"));
// })->purpose(\'Display an inspiring quote\');') => line('// Artisan::command(\'inspire\', function () {
// // $this->comment(Inspiring::quote());
// // })->purpose(\'Display an inspiring quote\');'),
// ], static fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Console/stubs/routes/console.php"));

collect([
'Http/Controllers/ProfileController.php',
Expand Down
2 changes: 1 addition & 1 deletion src/Console/stubs/routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote')->hourly();
})->purpose('Display an inspiring quote');

0 comments on commit 006dcfe

Please sign in to comment.