<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ProjectSettingsRequest extends FormRequest
{
    /**
     * 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_name'=>'required',
            'database_host'=>'required',
            'database_port'=>'required',
            'database_name'=>'required',
            'database_username'=>'required',
            'database_password'=>'required',
            'nebim_url'=>'required',
            'nebim_database_name'=>'required',
            'nebim_user_group_code'=>'required',
            'nebim_username'=>'required',
            'nebim_password'=>'required',
        ];
    }
}
