I use spatie laravel multi tenancy.
https://spatie.be/docs/laravel-multitenancy/v1/installation/using-multiple-databases
I want to do a simple query with query builder.
DB:table('users')->select('username')->get(); // i would like use this
But use wrong database homestead. If I use the model it works fine.
homestead
User::select('username')->get();
How can I solve this problem?
1.4m articles
1.4m replys
5 comments
57.0k users