%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Http/Requests/
Upload File :
Create Path :
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Http/Requests/StoreBooking.php

<?php

namespace App\Http\Requests;

use App\Http\Requests\ApiRequest;

class StoreBooking extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return auth()->guard('api')->check();
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'therapist_id' => 'required|exists:therapists,id',
            'sessions.*.product_id' => 'required|exists:products,id',
            'sessions.*.session_id' => 'required|exists:sessions,id',
            'amount' => 'required|integer'
        ];
    }
}

Zerion Mini Shell 1.0