You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
Is that possible to use Laravel CDS in two different schemas?
I have 2 connections in .env and database.php, but in whereHas it only use the main DB..
p.e.
Users is located in schema 1 from DB A
Posts is located in schema 2 from DB B
I have set the connection in both models and this works fine:
$query = \App\Users->with('Posts')->get();
But this code doesn't work fine: $query = \App\Users->with('Posts')->whereHas('Posts', function($q) { $q->where('post_type', '3');})->get();
Laravel Cross Database Subqueries Version
PHP Version: 7.0
Database Driver & Version: Postgresql
Description:
Steps To Reproduce:
The text was updated successfully, but these errors were encountered:
Is that possible to use Laravel CDS in two different schemas?
I have 2 connections in .env and database.php, but in whereHas it only use the main DB..
p.e.
Users is located in schema 1 from DB A
Posts is located in schema 2 from DB B
I have set the connection in both models and this works fine:
$query = \App\Users->with('Posts')->get();
But this code doesn't work fine:
$query = \App\Users->with('Posts')->whereHas('Posts', function($q) { $q->where('post_type', '3');})->get();
Description:
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: