I don't think you can do it in one line in PHP 5.3.
$first_name = Input::get('first_name');
$employee->first_name = $first_name[$i];
Accessing arrays directly on return values from functions is one of those nifty new features added in PHP 5.4.
http://php.net/manual/en/migration54.new-features.php
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community