Original: https://gist.github.com/sahibalejandro/1030d43259a6fe95f79f
Note: This assumes that we are in the Laravel application root folder
-
Copy
MakeViewCommand.php
in this Gist into./app/Console/MakeViewCommand.php
-
Edit
./app/Console/Kernel.php
and add the command into the$commands
array:protected $commands = [ MakeViewCommand::class, /* Additional commands */ ];