我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在laravel请求文件中提到postgres模式

I'm using Laravel 5.5 and I want to define a unique validation for a table column column_x located inside a Postgres schema schema_x, I've tried :

public function rules()
{
    return [
        'column_x' => 'required|unique:schema_x.table_x'
    ];
}

But the following error keeps raising :

SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "table_x" does not exist

I can't find any information about this case in the official documentation (Validation Section).

近期文章

  • 我想php继续监听socket(php socket编程)
  • Yii2表单更新 - 基于相关模型属性的验证
  • facebook-php-sdk:我无法更新广告集的信息
  • 创建链接实体时删除Symfony实体
  • MySQL ST_AsGeoJSON返回的浮点数不是原始数据
  • wp_mail unsubscription链接
  • 查询不在PostgreSQL数据库上工作
  • 无法将数据插入数据库laravel ajax
  • 如何搜索经常随Cloudsearch变化的价值?
  • 动态生成的HTML元素到PHP电子邮件表单
  • 如何在codeigniter 3中获取会话数据
  • 如何在sql中使用像LIKE IN这样的东西?
  • 如何解决403 - 在WordPress中被禁止?
  • 在Codeigniter上连接特定代码
  • Laravel Filesystem - 将文件从一个磁盘移动到另一个磁盘
  • 单击单选按钮的标签时,下拉列表消失
  • WooCommerce Membership - 管理员没有当前的会员资格
  • Laravel此页面当前无法处理此请求
  • 将OpenCart集成到另一个网站
  • Wordpress Owl Carousel不显示自定义帖子类型

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华