Skip to content

Commit

Permalink
Allow on debug mode only (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
erjanmx authored May 18, 2018
1 parent 2f39ebb commit 63f650c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controllers/LiveTinkerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@

class LiveTinkerController extends Controller
{
public function __construct()
{
if (! env('APP_DEBUG')) {
abort(403);
};
}

public function index()
{
return view('live-tinker::index');
Expand Down

0 comments on commit 63f650c

Please sign in to comment.