Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
21033739
authored
Oct 27, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
全局变量
parent
43652b27
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
.env
.idea/workspace.xml
app/Providers/AppServiceProvider.php
config/field.php
resources/views/layouts/app.blade.php
.env
View file @
21033739
...
...
@@ -44,3 +44,5 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
PUBLIC_URL=http://www.semour.com
.idea/workspace.xml
View file @
21033739
...
...
@@ -2,7 +2,10 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fb90add0-1393-48c2-9f26-72365d42cd03"
name=
"变更"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.env"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.env"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/Providers/AppServiceProvider.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/Providers/AppServiceProvider.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resources/views/layouts/app.blade.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resources/views/layouts/app.blade.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/storage/app/.gitignore"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/storage/app/.gitignore"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/storage/app/public/.gitignore"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/storage/app/public/.gitignore"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/storage/framework/.gitignore"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/storage/framework/.gitignore"
afterDir=
"false"
/>
...
...
app/Providers/AppServiceProvider.php
View file @
21033739
...
...
@@ -2,6 +2,7 @@
namespace
App\Providers
;
use
Illuminate\Support\Facades\View
;
use
Illuminate\Support\ServiceProvider
;
class
AppServiceProvider
extends
ServiceProvider
...
...
@@ -24,5 +25,6 @@ class AppServiceProvider extends ServiceProvider
public
function
boot
()
{
//
View
::
share
(
'public'
,
config
(
'field.public_url'
));
}
}
config/field.php
0 → 100644
View file @
21033739
<?php
return
[
'public_url'
=>
env
(
'PUBLIC_URL'
),
];
resources/views/layouts/app.blade.php
View file @
21033739
...
...
@@ -7,9 +7,9 @@
<!-- CSRF Token -->
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<title>
@yield('title', '深茂官网')title描述
</title>
<link
rel=
"stylesheet"
href=
"
__PUBLIC__/assets/css/common/common.min.css?v={$suffixtime}"
>
<link
rel=
"stylesheet"
href=
"
{{$public}}/assets/css/common/common.min.css?v={$suffixtime}"
>
<!-- 样式 -->
@yield('css')
@yield('css')
</head>
<body>
<div
id=
"app"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment