Skip to content

Commit

Permalink
added params argument to resolve helper
Browse files Browse the repository at this point in the history
  • Loading branch information
yamenarahman committed Mar 26, 2019
1 parent 747577b commit 194614d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,12 @@ function rescue(callable $callback, $rescue = null)
* Resolve a service from the container.
*
* @param string $name
* @param array $params
* @return mixed
*/
function resolve($name)
function resolve($name, array $params = [])
{
return app($name);
return app($name, $params);
}
}

Expand Down

0 comments on commit 194614d

Please sign in to comment.