Move methods to traits.

This commit is contained in:
James Cole
2018-08-10 17:05:37 +02:00
parent b1b13d3696
commit b605ede74e
11 changed files with 263 additions and 200 deletions

View File

@@ -87,16 +87,6 @@ trait UserNavigation
// @codeCoverageIgnoreEnd
}
/**
* Remember previous URL.
*
* @param string $identifier
*/
protected function rememberPreviousUri(string $identifier): void
{
session()->put($identifier, URL::previous());
}
/**
* @param Account $account
*
@@ -124,4 +114,14 @@ trait UserNavigation
return redirect(route('accounts.show', [$opposingTransaction->account_id]));
}
/**
* Remember previous URL.
*
* @param string $identifier
*/
protected function rememberPreviousUri(string $identifier): void
{
session()->put($identifier, URL::previous());
}
}