app/Http/Requests/TenancyRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'property_id' => 'required',
            'tenant_id' => 'required',
            'start_date' => 'required',
            'end_date' => 'required|after:start_date',
            'monthly_rent' => 'required|numeric',
        ];
    }
public function rules ( ) { return [ 'property_id' => 'required' , 'tenant_id' => 'required' , 'start_date' => 'required' , 'end_date' => 'required|after:start_date' , 'monthly_rent' => 'required|numeric' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .