Skip to content

Commit 63f650c

Browse files
authored
Allow on debug mode only (#2)
1 parent 2f39ebb commit 63f650c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Controllers/LiveTinkerController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
class LiveTinkerController extends Controller
1010
{
11+
public function __construct()
12+
{
13+
if (! env('APP_DEBUG')) {
14+
abort(403);
15+
};
16+
}
17+
1118
public function index()
1219
{
1320
return view('live-tinker::index');

0 commit comments

Comments
 (0)