We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ee893 commit e229444Copy full SHA for e229444
src/Commands/MakeCommand.php
@@ -13,6 +13,12 @@ class MakeCommand extends Command
13
14
public $description = 'create new blog file from string';
15
16
+ public function __construct()
17
+ {
18
+ parent::__construct();
19
+ $this->setAliases(['make:blog']);
20
+ }
21
+
22
public function handle(): void
23
{
24
$slug = Str::slug(
tests/src/Commands/MakeCommandTest.php
@@ -15,6 +15,12 @@ public function it_has_a_make_command()
$this->assertTrue(Arr::has(Artisan::all(), 'blog:make'));
}
+ /** @test */
+ public function it_has_a_make_command_alias()
+ $this->assertTrue(Arr::has(Artisan::all(), 'make:blog'));
/** @test */
25
public function it_sluggifies_a_title()
26
0 commit comments