Skip to content

Commit 00cc13f

Browse files
committed
add getInstance method for debug
1 parent 391bdce commit 00cc13f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/RouteToClass.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ public function __construct()
4949
$this->generators = collect(config('routetoclass.generators'));
5050
}
5151

52+
/**
53+
* Get Instance
54+
*
55+
* Returns the current object instance. Useful for when using facades.
56+
*
57+
* @return $this
58+
*/
59+
public function getInstance()
60+
{
61+
return $this;
62+
}
63+
5264
/**
5365
* Get Classes
5466
*

0 commit comments

Comments
 (0)