Skip to content

Commit

Permalink
Merge pull request #28 from bienvenu007/bvdev
Browse files Browse the repository at this point in the history
  • Loading branch information
aungwinthant authored Jan 15, 2020
2 parents 0211a35 + 99369ff commit d7f14c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vendor/
/.idea/
/vendor/
node_modules/
npm-debug.log

Expand Down
4 changes: 4 additions & 0 deletions src/AbstractLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public function boot(){
public function logData($request,$response){
$currentRouteAction = Route::currentRouteAction();

// Initialiaze controller and action variable before use them
$controller = "";
$action = "";

/*
* Some routes will not contain the `@` symbole (e.g. closures, or routes using a single action controller).
*/
Expand Down

0 comments on commit d7f14c7

Please sign in to comment.