Mercurial > packages > magicforger
comparison src/Generator/Requests/StoreRequestGenerator.php @ 34:f65ab84ee47f default
merge with codex
| author | luka |
|---|---|
| date | Wed, 10 Sep 2025 21:00:47 -0400 |
| parents | 827efbf4d73c |
| children |
comparison
equal
deleted
inserted
replaced
| 10:a9ff874afdbd | 34:f65ab84ee47f |
|---|---|
| 1 <?php | 1 <?php |
| 2 | 2 |
| 3 namespace Wizzard\MagicForger\Generator\Requests; | 3 namespace Wizard\MagicForger\Generator\Requests; |
| 4 | 4 |
| 5 use Symfony\Component\Console\Attribute\AsCommand; | 5 use Symfony\Component\Console\Attribute\AsCommand; |
| 6 use Wizzard\MagicForger\Generator\BaseGenerator; | 6 use Wizard\MagicForger\Generator\BaseGenerator; |
| 7 | 7 |
| 8 #[AsCommand(name: 'mf:store_request')] | 8 #[AsCommand(name: 'mf:store_request')] |
| 9 class StoreRequestGenerator extends BaseGenerator | 9 class StoreRequestGenerator extends BaseGenerator |
| 10 { | 10 { |
| 11 /** | 11 /** |
| 48 } | 48 } |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * Resolve the fully-qualified path to the stub. | 51 * Resolve the fully-qualified path to the stub. |
| 52 * | 52 * |
| 53 * @param string $stub | 53 * @param string $stub |
| 54 * | |
| 55 * @return string | 54 * @return string |
| 56 */ | 55 */ |
| 57 protected function resolveStubPath($stub) | 56 protected function resolveStubPath($stub) |
| 58 { | 57 { |
| 59 return is_file($customPath = $this->laravel->basePath(trim($stub, '/'))) | 58 return is_file($customPath = $this->laravel->basePath(trim($stub, '/'))) |
