Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Crud
      • Exceptions
      • Facades
  • None
  • PHP

Classes

  • CrudDatabaseSeeder
  • CrudInstallCommand
  • CrudSeeder
  • CrudServiceProvider
  • CrudUpdateCommand
  • DbGopher
  • Log
  • Options
  • Params
  • PostCrudSeeder
  • SeedActions
  • SeedAssets
  • SeedGroups
  • SeedLogs
  • SeedMenus
  • SeedObjects
  • SeedOptions
  • SeedPageTypes
  • SeedSeverities
  • SeedTables
  • SeedUsergroups
  • SeedUsers
  • SeedViews
  • UpdateCMSFields
  • UpdateReferences
  • Overview
  • Namespace
  • Class
  • Tree
 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 CrudInstallCommand extends Command {
 8: 
 9:     /**
10:      * The console command name.
11:      *
12:      * @var string
13:      */
14:     protected $name = 'crud:install';
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('config:publish',array('package'=>'laravella/crud'));
41:                 $this->call('asset:publish',array('package'=>'laravella/crud'));
42:                 $this->call('migrate',array('--package'=>'laravella/crud'));
43:         $this->info('Crud::migrations ran.');
44:         $this->call('db:seed',array('--class'=>'Laravella\\Crud\\CrudDatabaseSeeder'));
45:         $this->info('Crud::CrudDatabaseSeeder ran.');
46:         $this->info('CRUD installation complete.');
47:     }
48: 
49:     /**
50:      * Get the console command arguments.
51:      *
52:      * @return array
53:      */
54:     protected function getArguments()
55:     {
56:         return array(
57:             //array('example', InputArgument::REQUIRED, 'An example argument.'),
58:         );
59:     }
60: 
61:     /**
62:      * Get the console command options.
63:      *
64:      * @return array
65:      */
66:     protected function getOptions()
67:     {
68:         return array(
69:             //array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
70:         );
71:     }
72: 
73: }
crud API documentation generated by ApiGen 2.8.0