for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\Stripe\UI\API\Requests;
use App\Ship\Parents\Requests\Request;
/**
* Class CreateStripeAccountRequest.
*
* @author Mahmoud Zalt <[email protected]>
*/
class CreateStripeAccountRequest extends Request
{
* Define which Roles and/or Permissions has access to this request.
* @var array
protected $access = [
'permissions' => null
];
* Id's that needs decoding before applying the validation rules.
protected $decode = [
* Defining the URL parameters (`/stores/999/items`) allows applying
* validation rules on them and allows accessing them like request data.
protected $urlParameters = [
* Get the validation rules that apply to the request.
* @return array
public function rules()
return [
'customer_id' => 'required|min:3',
'card_id' => 'required|min:3',
}
* Determine if the user is authorized to make this request.
* @return bool
public function authorize()
return $this->check([
'hasAccess',
]);