I want to know how can I put $user->email in the following code snippet, where the email address is. Everything works well when hard coded in but not when I put $user->email where the email address is - I get error then. Please help. thanks.
public function runCommand(Request $request){
$user = User::all();
$signature = $request->input('signature');
$command = Artisan::call($signature, ['user' => 'myemail@email.co.za']);
return response($command);
}