argument('id'); if (ctype_digit($id) == true) { $user = User::find($id); } else { $user = User::whereUsername($id)->first(); } if (! $user) { $this->error('Could not find any user with that username or id.'); exit; } $this->info('User ID: '.$user->id); $this->info('Username: '.$user->username); $this->info('Email: '.$user->email); $this->info('Joined: '.$user->created_at->diffForHumans()); $this->info('Status Count: '.$user->statuses()->count()); } }