Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Added squareboat/sneaker#4 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Feb 28, 2019
1 parent 7d9174f commit b9c63d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public function boot()
{
$this->publishes([
self::CONFIG_PATH => config_path('notifex.php'),
]);
], 'config');

$this->publishes([
__DIR__ . '/resources/views' => resource_path('views/vendor/notifex'),
], 'notifex-views');

$this->loadMigrationsFrom(__DIR__ . '/migrations');

Expand Down
12 changes: 12 additions & 0 deletions src/resources/views/error.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,19 @@
<td>Full URI</td>
<td>{{ app('request')->fullUrl() }}</td>
</tr>
<tr>
<td width="20%">Client IP</td>
<td>{{ app('request')->getClientIp() ?? '127.0.0.1' }}</td>
</tr>
<tr>
<td>User ID</td>
<td>{{ auth()->user()->id ?? 'Guest' }}</td>
</tr>
</table>
</div>

<div class="extra-info">
<table width="100%">
@foreach(app('request')->all() as $key => $value)
<tr>
<td>{{ $key }}</td>
Expand Down

0 comments on commit b9c63d6

Please sign in to comment.