app/Http/Requests/Admin/StoreClientsRequest.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 [
            'name' => 'required',
            'category_id' => 'required',
            'date' => 'required|date_format:'.config('app.date_format'),
            'photo.*' => 'exists:products,id',
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'category_id' => 'required' , 'date' => 'required|date_format:' . config ( 'app.date_format' ) , 'photo.*' => 'exists:products,id' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .