replace offline to oflinepayment payment gateways

This commit is contained in:
cuneytsenturk
2017-09-18 19:57:48 +03:00
parent cb179c27eb
commit 6911c0bb42
37 changed files with 272 additions and 167 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace Modules\OfflinePayment\Http\Requests;
use App\Http\Requests\Request;
class Setting extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|string',
'code' => 'required|string',
];
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace Modules\OfflinePayment\Http\Requests;
use App\Http\Requests\Request;
class SettingDelete extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'code' => 'required|string',
];
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace Modules\OfflinePayment\Http\Requests;
use App\Http\Requests\Request;
class SettingGet extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'code' => 'required|string',
];
}
}