Skip to content

Commit 985a31b

Browse files
committed
🐛 fix prefix() method issue
Signed-off-by: otengkwame <[email protected]>
1 parent 19a891f commit 985a31b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Core/core/Console/Stubs/Actions/crud_action.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class {{ACTION}} extends CrudAction
66

77
public function __construct()
88
{
9-
$this->useDatabase(); // enable to use database
9+
$this->use->database(); // enable to use database
1010
// load models, libraries, other actions etc here
1111
}
1212

Core/core/Console/Stubs/Controllers/web_controller.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ class {{CONTROLLER}} extends WebController
55
public function __construct()
66
{
77
parent::__construct();
8-
// $this->useDatabase(); // enable to use database
8+
9+
// $this->use->database(); // enable to use database
910

1011
}
1112

Core/core/Route/Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,9 @@ private static function setRouteHttpMethod($name, $httpMethod, $signature)
10311031
*/
10321032
public static function prefix($name, Closure $callback)
10331033
{
1034-
static::$group = $name . '/';
1034+
static::$prefix = $name;
10351035
call_user_func($callback);
1036-
static::$group = null;
1036+
static::$prefix = null;
10371037
}
10381038

10391039
/**

0 commit comments

Comments
 (0)