1: <?php namespace Laravella\Crud;
2:
3: use Illuminate\Console\Command;
4: use Symfony\Component\Console\Input\InputOption;
5: use Symfony\Component\Console\Input\InputArgument;
6:
7: class CrudUpdateCommand extends Command {
8:
9: /**
10: * The console command name.
11: *
12: * @var string
13: */
14: protected $name = 'crud:update';
15:
16: /**
17: * The console command description.
18: *
19: * @var string
20: */
21: protected $description = 'Install database meta data for CRUD.';
22:
23: /**
24: * Create a new command instance.
25: *
26: * @return void
27: */
28: public function __construct()
29: {
30: parent::__construct();
31: }
32:
33: /**
34: * Execute the console command.
35: *
36: * @return void
37: */
38: public function fire()
39: {
40: $this->call('db:seed',array('--class'=>'Laravella\\Crud\\PostCrudSeeder'));
41: $this->info('CRUD update complete.');
42: }
43:
44: /**
45: * Get the console command arguments.
46: *
47: * @return array
48: */
49: protected function getArguments()
50: {
51: return array(
52: //array('example', InputArgument::REQUIRED, 'An example argument.'),
53: );
54: }
55:
56: /**
57: * Get the console command options.
58: *
59: * @return array
60: */
61: protected function getOptions()
62: {
63: return array(
64: //array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
65: );
66: }
67:
68: }