mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-04-11 11:50:05 +03:00
- Bug fixed: [Undefined index: factory](https://github.com/webNeat/lumen-generators/issues/14) - Feature added: [Check if file already exists before generating it](https://github.com/webNeat/lumen-generators/issues/11) - Feature added: [Support for additional columns like nullableTimestamps() and softDeletes() in migrations](https://github.com/webNeat/lumen-generators/issues/12) - Feature added: [Specifying namespace for `wn:resource` and `wn:resources`](https://github.com/webNeat/lumen-generators/issues/18)
18 lines
493 B
PHP
18 lines
493 B
PHP
<?php namespace Wn\Generators\Commands;
|
|
|
|
|
|
class ControllerRestActionsCommand extends BaseCommand {
|
|
|
|
protected $signature = 'wn:controller:rest-actions
|
|
{--force= : override the existing files}';
|
|
|
|
protected $description = 'Generates REST actions trait to use into controllers';
|
|
|
|
public function handle()
|
|
{
|
|
$content = $this->getTemplate('controller/rest-actions')->get();
|
|
|
|
$this->save($content, "./app/Http/Controllers/RESTActions.php", "REST actions trait");
|
|
}
|
|
|
|
} |