app/Http/Requests/Backend/BlogReqeust.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 [
            'title'       => 'required|string|min:3|max:30|unique:blogs,title,' . optional($this->blog)->id,
            'description' => 'required|string',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|string|min:3|max:30|unique:blogs,title,' . optional ( $ this -> blog ) -> id , 'description' => 'required|string' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .