Skip to content

Commit

Permalink
[4.x] Add Laravel Pulse link to global header (#9125)
Browse files Browse the repository at this point in the history
* Add link to global header and Pulse logo as SVG

* Always show link in `local` environments
  • Loading branch information
joshuablum authored Dec 5, 2023
1 parent 74aadb1 commit 8848526
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/svg/icons/regular/pulse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions resources/views/partials/global-header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
</a>
@endif

@if (Route::has('pulse') && (app()->environment('local') || $user->can('viewPulse')))
<a class="hidden md:block h-6 w-6 p-1 text-gray ml-4 hover:text-gray-800" href="{{ route('pulse') }}" target="_blank" v-tooltip="'Laravel Pulse'">
@cp_svg('icons/regular/pulse')
</a>
@endif

@if (config('nova.path') && (app()->environment('local') || $user->can('viewNova')))
<a class="hidden md:block h-6 w-6 p-1 text-gray ml-4 hover:text-gray-800" href="/{{ trim(config('nova.path'), '/') }}/dashboards/main" target="_blank" v-tooltip="'Laravel Nova'">
@cp_svg('icons/regular/nova')
Expand Down

0 comments on commit 8848526

Please sign in to comment.