Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add version to the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Oct 14, 2023
1 parent 5d00bbf commit 344f36e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

'name' => env('APP_NAME', 'Laravel'),
'version' => env('APP_ENV') === 'production' ? trim(exec('git describe --tags')) : 'dev',

/*
|--------------------------------------------------------------------------
Expand Down
8 changes: 7 additions & 1 deletion resources/views/partials/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
@endforeach
</section>
<aside class="container footer-bottom">
<address>Русскоязычное сообщество Laravel Framework &copy; {{ date('Y') }}</address>
<address>Русскоязычное Сообщество Laravel Framework &copy; {{ date('Y') }}</address>

<nav class="footer-bottom-menu">
<span style="
padding: 0 10px;
font-size: 11px;
border-radius: 2px;
background: rgba(255, 255, 255, .05);
">{{ config('app.version', 'dev') }}</span>
@foreach(config('menu.footer.menu') as $uri => $title)
<a href="{{ $uri }}" target="_blank" rel="nofollow">@lang($title)</a>
@unless($loop->last)
Expand Down

0 comments on commit 344f36e

Please sign in to comment.