Skip to content

Commit

Permalink
Small tweak.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 31, 2020
1 parent e5fcc18 commit 6893365
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/Http/Console/MakeRpcRequest.php
Expand Up @@ -34,6 +34,7 @@ class MakeRpcRequest extends Generator
public function getStubFile(): string
{
$directory = __DIR__.'/stubs';

return $this->option('middleware')
? "{$directory}/request.middleware.stub"
: "{$directory}/request.stub";
Expand Down
2 changes: 0 additions & 2 deletions tests/Feature/Http/RequestTest.php
Expand Up @@ -163,8 +163,6 @@ class RequestHandlerWithMiddleware
{
/**
* Get the middleware the request should pass through.
*
* @return array
*/
public function middleware(): array
{
Expand Down

0 comments on commit 6893365

Please sign in to comment.