app/Api/V1/Requests/CreateCategoryRequest.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|string|unique:categories',
            'description' => 'required|string',
            'meta_keyword' => 'nullable|string',
            'meta_description' => 'nullable|string',
            'picture' => 'image|max:2048',
            'properties' => 'json|nullable'
        ];
	}
public function rules ( ) { return [ 'name' => 'required|string|unique:categories' , 'description' => 'required|string' , 'meta_keyword' => 'nullable|string' , 'meta_description' => 'nullable|string' , 'picture' => 'image|max:2048' , 'properties' => 'json|nullable' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .