Skip to content

Commit 5f4170f

Browse files
committed
Update method name
1 parent bc4c703 commit 5f4170f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Controllers/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function config(?string $key = null, mixed $setting = null)
9393
* @param ?callable $cb
9494
* @return Database
9595
*/
96-
public function db(?string $name = null, ?callable $cb = null)
96+
public function app_db(?string $name = null, ?callable $cb = null)
9797
{
9898
return call_user_func_array('db', func_get_args());
9999
}

config/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* automatically. So you absolutely must not edit the default key.
2424
*
2525
* In the opposite box you must execute the code in each route.
26-
* `db('the key name')` or `Bow\Database\Database::connection('the key name')`
26+
* `app_db('the key name')` or `Bow\Database\Database::connection('the key name')`
2727
*/
2828
'connections' => [
2929
/**

0 commit comments

Comments
 (0)