%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/app/Http/Requests/Api/v1/Payments/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/app/Http/Requests/Api/v1/Payments/CreatePaymentRequest.php

<?php

namespace App\Http\Requests\Api\v1\Payments;

use App\Http\Requests\BaseRequest;

class CreatePaymentRequest extends BaseRequest
{
    /**
     * 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 [
            'project_id' => 'required|integer|exists:projects,id',
            'amount'     => 'required|integer',
        ];
    }

    public function messages()
    {
        return [
            'project_id.required' => trans('payments.cant_create_without_project'),
        ];
    }

}

Zerion Mini Shell 1.0