¨4.0.1¨
This commit is contained in:
@@ -2,17 +2,20 @@
|
||||
|
||||
namespace Modules\Currency\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class CurrentCurrencyController
|
||||
{
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param string $currency
|
||||
* @return \Illuminate\Http\Response
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function store($currency)
|
||||
{
|
||||
if (! in_array($currency, setting('supported_currencies'))) {
|
||||
if (!in_array($currency, setting('supported_currencies'))) {
|
||||
return back();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user