I have this code:
if(Auth::check()) {
Redirect::to('home');
}
$user = Auth::user();
return View::make('HumanResourcesProcess')->with(array('firstName', $user->firstName));
and it gives me the error:
Undefined variable: firstName
But I am defining it in the array part? Any ideas on how to fix it?