| Conditions | 3 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | $user = $this->argument('user'); |
||
| 18 | try{ |
||
| 19 | $status = UserProviderFacade::makeAdmin($user); |
||
| 20 | if($status){ |
||
| 21 | $this->info("User {$user} was converted to an admin"); |
||
| 22 | return; |
||
| 23 | } |
||
| 24 | $this->warn("It was failed, be sure your column is fillable."); |
||
| 25 | } catch (\Exception $exception){ |
||
| 26 | $this->error("User {$user} does not exist"); |
||
| 27 | } |
||
| 31 |