Skip to content

Commit

Permalink
simplify implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 14, 2017
1 parent e08714d commit 18d1648
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,7 @@ function request($key = null, $default = null)
return app('request')->only($key);
}

if (app('request')->hasFile($key)) {
return app('request')->file($key);
}

return app('request')->input($key, $default);
return data_get(app('request')->all(), $key, $default);
}
}

Expand Down

0 comments on commit 18d1648

Please sign in to comment.