Skip to content

Commit 66f2617

Browse files
committed
formatting
1 parent cacc6d3 commit 66f2617

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Illuminate/Routing/Console/ControllerMakeCommand.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,9 @@ protected function getOptions()
175175
{
176176
return [
177177
['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate a resource controller for the given model.'],
178-
179178
['resource', 'r', InputOption::VALUE_NONE, 'Generate a resource controller class.'],
180-
181-
['invokable', 'i', InputOption::VALUE_NONE, 'Generate a single action controller class.'],
182-
179+
['invokable', 'i', InputOption::VALUE_NONE, 'Generate a single method, invokable controller class.'],
183180
['parent', 'p', InputOption::VALUE_OPTIONAL, 'Generate a nested resource controller class.'],
184-
185181
['api', null, InputOption::VALUE_NONE, 'Exclude the create and edit methods from the controller.'],
186182
];
187183
}

src/Illuminate/Routing/Console/stubs/controller.invokable.stub

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ use DummyRootNamespaceHttp\Controllers\Controller;
88
class DummyClass extends Controller
99
{
1010
/**
11-
* Run action.
11+
* Handle the incoming request.
1212
*
13+
* @param \Illuminate\Http\Request
1314
* @return \Illuminate\Http\Response
1415
*/
15-
public function __invoke()
16+
public function __invoke(Request $request)
1617
{
1718
//
1819
}

0 commit comments

Comments
 (0)