-
-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
144 changed files
with
5,397 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ndTest__test_it_can_generate_a_action_in_sub_namespace_with_correct_generated_file__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Actions\Api; | ||
|
||
class MyAction | ||
{ | ||
public function handle() | ||
{ | ||
// | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...e/__snapshots__/ActionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Actions; | ||
|
||
class MyAction | ||
{ | ||
public function handle() | ||
{ | ||
// | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...mandTest__test_it_can_generate_a_cast_in_sub_namespace_with_correct_generated_file__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Casts\Api; | ||
|
||
use Illuminate\Contracts\Database\Eloquent\CastsAttributes; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class MyCast implements CastsAttributes | ||
{ | ||
/** | ||
* Cast the given value. | ||
* | ||
* @param array<string, mixed> $attributes | ||
*/ | ||
public function get(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
|
||
/** | ||
* Prepare the given value for storage. | ||
* | ||
* @param array<string, mixed> $attributes | ||
*/ | ||
public function set(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...ake/__snapshots__/CastMakeCommandTest__test_it_generated_correct_file_with_content__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Casts; | ||
|
||
use Illuminate\Contracts\Database\Eloquent\CastsAttributes; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class MyCast implements CastsAttributes | ||
{ | ||
/** | ||
* Cast the given value. | ||
* | ||
* @param array<string, mixed> $attributes | ||
*/ | ||
public function get(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
|
||
/** | ||
* Prepare the given value for storage. | ||
* | ||
* @param array<string, mixed> $attributes | ||
*/ | ||
public function set(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ake/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\SuperChannel; | ||
|
||
class WelcomeChannel | ||
{ | ||
|
||
/** | ||
* Create a new channel instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Authenticate the user's access to the channel. | ||
*/ | ||
public function join(Operator $user): array|bool | ||
{ | ||
// | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...pshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\SuperChannel; | ||
|
||
class WelcomeChannel | ||
{ | ||
|
||
/** | ||
* Create a new channel instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Authenticate the user's access to the channel. | ||
*/ | ||
public function join(Operator $user): array|bool | ||
{ | ||
// | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
.../__snapshots__/ChannelMakeCommandTest__test_it_generated_correct_file_with_content__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Broadcasting; | ||
|
||
class WelcomeChannel | ||
{ | ||
|
||
/** | ||
* Create a new channel instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Authenticate the user's access to the channel. | ||
*/ | ||
public function join(Operator $user): array|bool | ||
{ | ||
// | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...andTest__test_it_can_generate_a_class_in_sub_namespace_with_correct_generated_file__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Classes\Api; | ||
|
||
class Api\Demo | ||
{ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ke/__snapshots__/ClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Classes; | ||
|
||
class Demo | ||
{ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...ake/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\CustomCommands; | ||
|
||
use Illuminate\Console\Command; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
|
||
class AwesomeCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
*/ | ||
protected $signature = 'command:name'; | ||
|
||
/** | ||
* The console command description. | ||
*/ | ||
protected $description = 'Command description.'; | ||
|
||
/** | ||
* Create a new command instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Get the console command arguments. | ||
*/ | ||
protected function getArguments(): array | ||
{ | ||
return [ | ||
['example', InputArgument::REQUIRED, 'An example argument.'], | ||
]; | ||
} | ||
|
||
/** | ||
* Get the console command options. | ||
*/ | ||
protected function getOptions(): array | ||
{ | ||
return [ | ||
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null], | ||
]; | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...pshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
|
||
class AwesomeCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
*/ | ||
protected $signature = 'command:name'; | ||
|
||
/** | ||
* The console command description. | ||
*/ | ||
protected $description = 'Command description.'; | ||
|
||
/** | ||
* Create a new command instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Get the console command arguments. | ||
*/ | ||
protected function getArguments(): array | ||
{ | ||
return [ | ||
['example', InputArgument::REQUIRED, 'An example argument.'], | ||
]; | ||
} | ||
|
||
/** | ||
* Get the console command options. | ||
*/ | ||
protected function getOptions(): array | ||
{ | ||
return [ | ||
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null], | ||
]; | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
.../__snapshots__/CommandMakeCommandTest__test_it_generated_correct_file_with_content__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
namespace Modules\Blog\Console; | ||
|
||
use Illuminate\Console\Command; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
|
||
class MyAwesomeCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
*/ | ||
protected $signature = 'command:name'; | ||
|
||
/** | ||
* The console command description. | ||
*/ | ||
protected $description = 'Command description.'; | ||
|
||
/** | ||
* Create a new command instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Get the console command arguments. | ||
*/ | ||
protected function getArguments(): array | ||
{ | ||
return [ | ||
['example', InputArgument::REQUIRED, 'An example argument.'], | ||
]; | ||
} | ||
|
||
/** | ||
* Get the console command options. | ||
*/ | ||
protected function getOptions(): array | ||
{ | ||
return [ | ||
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null], | ||
]; | ||
} | ||
} |
Oops, something went wrong.