all() public method

Gets all the key/value pairs from the .env file.
public all ( ) : array
return array
Esempio n. 1
0
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function handle()
 {
     $env = new Env(base_path('.env'));
     $data = [];
     foreach ($env->all() as $key => $value) {
         $data[] = [$key, $value];
     }
     return $this->table(['Key', 'Value'], $data);
 }