Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit a7db8ad

Browse files
committed
🧑‍💻 simplified db connection
1 parent 0a70262 commit a7db8ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public function __construct()
1717
// requestData() or request() to get request data or initialise it yourself
1818

1919
// autoConnect uses the .env variables to quickly connect to db
20-
auth()->autoConnect();
20+
// Leaf auth will automagically connect to this db instance
21+
db()->autoConnect();
2122

2223
// You can configure auth to get additional customizations
2324
// This can be done here with the auth()->config method or

0 commit comments

Comments
 (0)