<?php
/**
 * Created by PhpStorm.
 * User: PC
 * Date: 25.07.2018
 * Time: 17:50
 */

namespace App\Http\Requests\Api;


use Illuminate\Foundation\Http\FormRequest;

class StatusUserRequest extends FormRequest{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation status that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'user_id' => 'required|numeric|exists:users,id',
            'status' => 'required|boolean'
        ];
    }
}