| @@ 88-99 (lines=12) @@ | ||
| 85 | ||
| 86 | $this->task( |
|
| 87 | 'Creating default database configuration', |
|
| 88 | function () { |
|
| 89 | if (! File::exists(config_path('database.php'))) { |
|
| 90 | File::copy( |
|
| 91 | static::CONFIG_FILE, |
|
| 92 | config_path('database.php') |
|
| 93 | ); |
|
| 94 | ||
| 95 | return true; |
|
| 96 | } |
|
| 97 | ||
| 98 | return false; |
|
| 99 | } |
|
| 100 | ); |
|
| 101 | ||
| 102 | $this->task( |
|
| @@ 46-55 (lines=10) @@ | ||
| 43 | ||
| 44 | $this->task( |
|
| 45 | 'Creating default logging configuration', |
|
| 46 | function () { |
|
| 47 | if (! File::exists(config_path('logging.php'))) { |
|
| 48 | return File::copy( |
|
| 49 | static::CONFIG_FILE, |
|
| 50 | config_path('logging.php') |
|
| 51 | ); |
|
| 52 | } |
|
| 53 | ||
| 54 | return false; |
|
| 55 | } |
|
| 56 | ); |
|
| 57 | ||
| 58 | $this->info('Usage:'); |
|