<?php

namespace App\Http\Requests\Dashboard;

use Illuminate\Foundation\Http\FormRequest;

class ProjectRequest 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 [
            'title_ar' => 'required',
            'title_en'          => 'required',
            'desc_ar' => 'required',
            'desc_en'           => 'required',
            'photo'             => 'required',
            'images'            => 'required',
            'address'           => 'required',
            'completion_date'   => 'required',
            'customer_id'       => 'required',
            'company_id'        => 'required',
        ];
    }
}
