Offline Payment re-factoring
This commit is contained in:
@ -4,7 +4,6 @@ namespace Modules\OfflinePayment\Http\Controllers;
|
||||
|
||||
use App\Events\InvoicePaid;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Routing\Controller;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
@ -16,11 +15,12 @@ use SignedUrl;
|
||||
|
||||
class OfflinePayment extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
* @param Invoice
|
||||
* @param PaymentRequest
|
||||
* @return Response
|
||||
* @return JSON
|
||||
*/
|
||||
public function show(Invoice $invoice, PaymentRequest $request)
|
||||
{
|
||||
@ -46,11 +46,12 @@ class OfflinePayment extends Controller
|
||||
'html' => $html,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
* @param $invoice
|
||||
* @param $request
|
||||
* @return Response
|
||||
* @return JSON
|
||||
*/
|
||||
public function link(Invoice $invoice, PaymentRequest $request)
|
||||
{
|
||||
|
@ -12,6 +12,7 @@ use Modules\OfflinePayment\Http\Requests\SettingDelete as DRequest;
|
||||
|
||||
class Settings extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
@ -66,7 +67,7 @@ class Settings extends Controller
|
||||
|
||||
Artisan::call('cache:clear');
|
||||
|
||||
return redirect('apps/offlinepayment/settings');
|
||||
return redirect()->route('offlinepayment.edit');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user