Set app.name as title

Get title from .env config and set it as website name
This commit is contained in:
Gamerboy59 2022-03-13 23:50:32 +01:00 committed by GitHub
parent 5b1c1b663f
commit 715be1a98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
<meta name="api_token" content="{{ Auth::user()->api_token }}"> <meta name="api_token" content="{{ Auth::user()->api_token }}">
@endif @endif
<title>@yield('title') - My idlers</title> <title>@yield('title') - @if (config()->has('app.name')) {{ config('app.name') }} @else My idlers @endif</title>
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"> <link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ asset('css/fa.min.css') }}"> <link rel="stylesheet" href="{{ asset('css/fa.min.css') }}">