Skip to content

Commit 80f15b5

Browse files
fixed the custom command
1 parent 75d68b2 commit 80f15b5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Console/ChuckNorrisJoke.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
namespace Manojksrivastava\ChuckNorrisJokes\Console;
3+
4+
use Illuminate\Console\Command;
5+
use Manojksrivastava\ChuckNorrisJokes\Facades\ChuckNorris;
6+
7+
class ChuckNorrisJoke extends Command
8+
{
9+
protected $signature = 'chuck-norris';
10+
protected $description = 'Output a funny Chuck Norris joke.';
11+
public function handle()
12+
{
13+
$this->info(ChuckNorris::getRandomJoke());
14+
}
15+
}

0 commit comments

Comments
 (0)