Skip to content

V1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 8, 2020
Merged

V1 #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions config/larvabug.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,41 @@

return [

/*
* Id of project from larvabug.com
*
*/
'project_id' => env('LB_PROJECT_ID',''),

/*
* Project secret from larvabug.com
*
*/
'project_secret' => env('LB_SECRET',''),

/*
* Array of environments to enable error reporting
* If environment configured in the array will match with the laravel app environment
* then error will be reported to larvabug.com
*
*/
'environment' => ['production','local'],

/*
* Mention any error that should skip from reporting to laravbug
* Must be mentioned as a string
*
*/
'skip_errors' => [
'\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class'
],

/*
* Add request parameters to be black listed
* any parameter defined here will not be reported to larvabug.com and
* all request, session and cookies will be filtered
*
*/
'blacklist' => [
'password'
]
Expand Down
8 changes: 8 additions & 0 deletions resources/views/analytics.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script type="text/javascript">
(function(a,s,i,m,o,v,x){a['LibAnalytics']=o;a[o]=a[o]||function(){
(a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();v=s.createElement(i),
x=s.getElementsByTagName(i)[0];v.async=1;v.src=m;x.parentNode.insertBefore(v,x)})
(window,document,'script','http://larvabug.local/analytics/build/analytics.js','at');
at('setAccount', '{{env('LB_PROJECT_ID')}}:{{env('LB_SECRET')}}');
at('trackPageview');
</script>
Loading