This repository was archived by the owner on Nov 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Coderflex \LaraCommand \Console \Concerns ;
4
4
5
- use Symfony \Component \Console \Input \InputArgument ;
6
-
7
5
/**
8
6
* Interact With Console Commands
9
7
*/
@@ -20,7 +18,6 @@ public function loopThroughNameArgumentWith(string $command): bool
20
18
* @var array $models
21
19
*/
22
20
$ models = explode (' ' , strval ($ this ->argument ('name ' )));
23
-
24
21
collect ($ models )->each (function ($ name ) use ($ command ) {
25
22
$ this ->line ("Generating {$ name } class \n" );
26
23
Original file line number Diff line number Diff line change 2
2
3
3
it ('creates a new eloquent single model class ' , function () {
4
4
$ this ->artisan ('laracommand:make-model ' , [
5
- 'name ' => 'Category ' ,
6
- ])
7
- ->assertExitCode (0 );
5
+ 'name ' => 'Category ' ,
6
+ ])
7
+ ->assertExitCode (0 );
8
8
});
9
9
10
10
it ('returns required error if the name was not provided ' , function () {
11
11
$ this ->artisan ('laracommand:make-model ' , [
12
- 'name ' => null ,
13
- ])
14
- ->assertExitCode (0 );
12
+ 'name ' => null ,
13
+ ])
14
+ ->assertExitCode (0 );
15
15
});
16
16
17
17
it ('creates a new eloquent model class ' , function () {
You can’t perform that action at this time.
0 commit comments