Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function handle() |
||
42 | { |
||
43 | //si no me passen id, el demano. |
||
44 | $id = $this->argument('id') ? $this->argument('id') : $this->askForUsers(); |
||
45 | $user = User::findOrFail($id); |
||
46 | |||
47 | try { |
||
48 | $headers = ['Key', 'Value']; |
||
49 | $info = [ |
||
50 | ['id', $user->id], |
||
51 | ['Name', $user->name], |
||
|
|||
52 | ['email', $user->email], |
||
53 | ]; |
||
54 | $this->table($headers, $info); |
||
55 | } catch (Exception $e) { |
||
56 | $this->error('error'.$e); |
||
57 | } |
||
60 |