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

Commit 3fe8116

Browse files
committed
feat: update base controller
1 parent 25dabb8 commit 3fe8116

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

app/controllers/Controller.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,4 @@
99
*/
1010
class Controller extends \Leaf\Controller
1111
{
12-
public function __construct()
13-
{
14-
parent::__construct();
15-
16-
// autoConnect uses the .env variables to quickly connect to db
17-
// Leaf auth will smartly connect to this db connection.
18-
// If you enabled db sync in public/index.php, you can
19-
// delete this line.
20-
db()->autoConnect();
21-
22-
// You can configure auth to get additional customizations
23-
// This can be done here with the auth()->config method or
24-
// simply in the config/auth.php file
25-
auth()->config(AuthConfig());
26-
27-
// You can refer to https://leafphp.dev/modules/auth for auth docs
28-
}
2912
}

0 commit comments

Comments
 (0)