1 | <?php |
||
10 | class KeyGenerateCommand extends Command |
||
11 | { |
||
12 | use ConfirmableTrait; |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'key:eloquent |
||
19 | {--show : Display the key instead of modifying files} |
||
20 | {--force : Force the operation to run when in production}'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Set the eloquent key'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function handle() |
||
53 | |||
54 | /** |
||
55 | * Generate a random key for the application. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | protected function generateRandomKey() |
||
65 | |||
66 | /** |
||
67 | * Set the application key in the environment file. |
||
68 | * |
||
69 | * @param string $key |
||
70 | * @return bool |
||
71 | */ |
||
72 | protected function setKeyInEnvironmentFile($key) |
||
84 | |||
85 | protected function environmentFileWithExists() |
||
92 | |||
93 | /** |
||
94 | * Write a new environment file with the given key. |
||
95 | * |
||
96 | * @param string $key |
||
97 | * @return void |
||
98 | */ |
||
99 | protected function writeNewEnvironmentFileWith($key) |
||
116 | |||
117 | /** |
||
118 | * Get a regex pattern that will match env APP_KEY with any random key. |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | protected function keyReplacementPattern() |
||
128 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.