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
When I try to get data like this $result = DB::table('wp_users')->get();
I get an error Fatal error: Uncaught RuntimeException: A facade root has not been set
But at the same time, if I make a request as follows $result = User::get();
I get all records from db without error (Moreover, the User class is redefined and extended from the Model class, that is, this is not the class described in your library)
How to fix this? Because I need to use custom queries via DB::statement ()
The text was updated successfully, but these errors were encountered:
When I try to get data like this
$result = DB::table('wp_users')->get();
I get an error
Fatal error: Uncaught RuntimeException: A facade root has not been set
But at the same time, if I make a request as follows
$result = User::get();
I get all records from db without error (Moreover, the User class is redefined and extended from the Model class, that is, this is not the class described in your library)
How to fix this? Because I need to use custom queries via
DB::statement ()
The text was updated successfully, but these errors were encountered: