Remove reference to guard from other bind support classes.

This commit is contained in:
James Cole
2018-02-09 19:24:30 +01:00
parent 53a6c10ada
commit 0f09a9db4d
9 changed files with 23 additions and 23 deletions

View File

@@ -37,9 +37,9 @@ class CurrencyCode implements BinderInterface
*
* @return TransactionCurrency
*/
public static function routeBinder($guard, string $value, Route $route): TransactionCurrency
public static function routeBinder(string $value, Route $route): TransactionCurrency
{
if ($guard->check()) {
if (auth()->check()) {
$currency = TransactionCurrency::where('code', trim($value))->first();
if (null !== $currency) {
return $currency;