Skip to content

Commit eb30f28

Browse files
committed
添加安装命令
1 parent e6d3c04 commit eb30f28

23 files changed

+275
-158150
lines changed

composer.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"name": "smallruraldog/laravel-vue-admin",
3-
"description": ":description",
4-
"license": "license",
3+
"description": "开箱即用的Laravel后台扩展",
4+
"license": "MIT",
5+
"version": "v0.0.1",
56
"authors": [
67
{
7-
"name": "author name",
8-
"email": "author email",
9-
"homepage": "author homepage"
8+
"name": "zhang wei",
9+
"email": "[email protected]"
1010
}
1111
],
1212
"homepage": "https://github.com/smallruraldog/admin",
13-
"keywords": ["Laravel", "Admin"],
13+
"keywords": [
14+
"Laravel",
15+
"Admin",
16+
"Vue"
17+
],
1418
"require": {
1519
"illuminate/support": "~5|~6"
1620
},

config/admin.php

+15-258
Original file line numberDiff line numberDiff line change
@@ -2,81 +2,33 @@
22

33
return [
44

5-
/*
6-
|--------------------------------------------------------------------------
7-
| Laravel-admin name
8-
|--------------------------------------------------------------------------
9-
|
10-
| This value is the name of laravel-admin, This setting is displayed on the
11-
| login page.
12-
|
13-
*/
14-
'name' => 'Laravel-admin',
15-
16-
'loginDesc' => 'iView Admin Pro 企业级中台前端/设计解决方案',
17-
18-
/*
19-
|--------------------------------------------------------------------------
20-
| Laravel-admin logo
21-
|--------------------------------------------------------------------------
22-
|
23-
| The logo of all admin pages. You can also set it as an image by using a
24-
| `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'.
25-
|
26-
*/
5+
6+
'name' => 'Laravel-vue-admin',
7+
8+
'loginDesc' => '开箱即用的 Laravel 后台扩展',
9+
10+
2711
'loginLogo' => 'https://file.iviewui.com/admin-pro-dist/img/logo.7b8cc895.png',
2812
'logoDark' => 'https://file.iviewui.com/admin-pro-dist/img/logo-dark.ab519d9f.png',
2913
'logo' => 'https://file.iviewui.com/admin-pro-dist/img/logo.7b8cc895.png',
3014

31-
'copyright' => 'Copyright © 2019 广西米米资产管理有限公司',
15+
'copyright' => 'Copyright © 2020 小土狗',
3216
'footerLinks' => [
3317
[
3418
'href' => 'https://github.com/SmallRuralDog/laravel-vue-admin',
3519
'title' => '官网'
3620
],
37-
[
38-
'href' => 'https://github.com/SmallRuralDog/laravel-vue-admin',
39-
'title' => '社区'
40-
],
4121
[
4222
'href' => 'https://smallruraldog.github.io/laravel-vue-admin/',
4323
'title' => '文档'
4424
]
4525
],
4626

47-
48-
/*
49-
|--------------------------------------------------------------------------
50-
| Laravel-admin mini logo
51-
|--------------------------------------------------------------------------
52-
|
53-
| The logo of all admin pages when the sidebar menu is collapsed. You can
54-
| also set it as an image by using a `img` tag, eg
55-
| '<img src="http://logo-url" alt="Admin logo">'.
56-
|
57-
*/
5827
'logo-mini' => 'https://file.iviewui.com/admin-pro-dist/img/logo-small.4a34a883.png',
5928

60-
/*
61-
|--------------------------------------------------------------------------
62-
| Laravel-admin bootstrap setting
63-
|--------------------------------------------------------------------------
64-
|
65-
| This value is the path of laravel-admin bootstrap file.
66-
|
67-
*/
6829
'bootstrap' => app_path('Admin/bootstrap.php'),
6930

70-
/*
71-
|--------------------------------------------------------------------------
72-
| Laravel-admin route settings
73-
|--------------------------------------------------------------------------
74-
|
75-
| The routing configuration of the admin page, including the path prefix,
76-
| the controller namespace, and the default middleware. If you want to
77-
| access through the root path, just set the prefix to empty string.
78-
|
79-
*/
31+
8032
'route' => [
8133

8234
'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'),
@@ -87,49 +39,15 @@
8739
'middleware' => ['web', 'admin'],
8840
],
8941

90-
/*
91-
|--------------------------------------------------------------------------
92-
| Laravel-admin install directory
93-
|--------------------------------------------------------------------------
94-
|
95-
| The installation directory of the controller and routing configuration
96-
| files of the administration page. The default is `app/Admin`, which must
97-
| be set before running `artisan admin::install` to take effect.
98-
|
99-
*/
42+
10043
'directory' => app_path('Admin'),
10144

102-
/*
103-
|--------------------------------------------------------------------------
104-
| Laravel-admin html title
105-
|--------------------------------------------------------------------------
106-
|
107-
| Html title for all pages.
108-
|
109-
*/
45+
11046
'title' => 'Admin',
11147

112-
/*
113-
|--------------------------------------------------------------------------
114-
| Access via `https`
115-
|--------------------------------------------------------------------------
116-
|
117-
| If your page is going to be accessed via https, set it to `true`.
118-
|
119-
*/
48+
12049
'https' => env('ADMIN_HTTPS', false),
12150

122-
/*
123-
|--------------------------------------------------------------------------
124-
| Laravel-admin auth setting
125-
|--------------------------------------------------------------------------
126-
|
127-
| Authentication settings for all admin pages. Include an authentication
128-
| guard and a user provider setting of authentication driver.
129-
|
130-
| You can specify a controller for `login` `logout` and other auth routes.
131-
|
132-
*/
13351
'auth' => [
13452

13553
'controller' => App\Admin\Controllers\AuthController::class,
@@ -164,15 +82,6 @@
16482
],
16583
],
16684

167-
/*
168-
|--------------------------------------------------------------------------
169-
| Laravel-admin upload setting
170-
|--------------------------------------------------------------------------
171-
|
172-
| File system configuration for form upload files and images, including
173-
| disk and upload path.
174-
|
175-
*/
17685
'upload' => [
17786

17887
// Disk in `config/filesystem.php`.
@@ -185,14 +94,6 @@
18594
],
18695
],
18796

188-
/*
189-
|--------------------------------------------------------------------------
190-
| Laravel-admin database settings
191-
|--------------------------------------------------------------------------
192-
|
193-
| Here are database settings for laravel-admin builtin model & tables.
194-
|
195-
*/
19697
'database' => [
19798

19899
// Database connection for following tables.
@@ -222,14 +123,6 @@
222123
'role_menu_table' => 'admin_role_menu',
223124
],
224125

225-
/*
226-
|--------------------------------------------------------------------------
227-
| User operation log setting
228-
|--------------------------------------------------------------------------
229-
|
230-
| By setting this option to open or close operation log in laravel-admin.
231-
|
232-
*/
233126
'operation_log' => [
234127

235128
'enable' => true,
@@ -250,125 +143,29 @@
250143
],
251144
],
252145

253-
/*
254-
|--------------------------------------------------------------------------
255-
| Indicates whether to check route permission.
256-
|--------------------------------------------------------------------------
257-
*/
258146
'check_route_permission' => true,
259147

260-
/*
261-
|--------------------------------------------------------------------------
262-
| Indicates whether to check menu roles.
263-
|--------------------------------------------------------------------------
264-
*/
148+
265149
'check_menu_roles' => true,
266150

267-
/*
268-
|--------------------------------------------------------------------------
269-
| User default avatar
270-
|--------------------------------------------------------------------------
271-
|
272-
| Set a default avatar for newly created users.
273-
|
274-
*/
275151
'default_avatar' => 'https://dev-file.iviewui.com/userinfoPDvn9gKWYihR24SpgC319vXY8qniCqj4/avatar',
276152

277-
/*
278-
|--------------------------------------------------------------------------
279-
| Admin map field provider
280-
|--------------------------------------------------------------------------
281-
|
282-
| Supported: "tencent", "google", "yandex".
283-
|
284-
*/
153+
285154
'map_provider' => 'google',
286155

287-
/*
288-
|--------------------------------------------------------------------------
289-
| Application Skin
290-
|--------------------------------------------------------------------------
291-
|
292-
| This value is the skin of admin pages.
293-
| @see https://adminlte.io/docs/2.4/layout
294-
|
295-
| Supported:
296-
| "skin-blue", "skin-blue-light", "skin-yellow", "skin-yellow-light",
297-
| "skin-green", "skin-green-light", "skin-purple", "skin-purple-light",
298-
| "skin-red", "skin-red-light", "skin-black", "skin-black-light".
299-
|
300-
*/
301-
'skin' => 'skin-blue-light',
302-
303-
/*
304-
|--------------------------------------------------------------------------
305-
| Application layout
306-
|--------------------------------------------------------------------------
307-
|
308-
| This value is the layout of admin pages.
309-
| @see https://adminlte.io/docs/2.4/layout
310-
|
311-
| Supported: "fixed", "layout-boxed", "layout-top-nav", "sidebar-collapse",
312-
| "sidebar-mini".
313-
|
314-
*/
315-
'layout' => ['sidebar-mini', 'sidebar-collapse'],
316-
317-
/*
318-
|--------------------------------------------------------------------------
319-
| Login page background image
320-
|--------------------------------------------------------------------------
321-
|
322-
| This value is used to set the background image of login page.
323-
|
324-
*/
156+
325157
'login_background_image' => 'https://file.iviewui.com/admin-pro-dist/img/body.8aa7c4a6.svg',
326158

327159

328-
/*
329-
|--------------------------------------------------------------------------
330-
| Show version at footer
331-
|--------------------------------------------------------------------------
332-
|
333-
| Whether to display the version number of laravel-admin at the footer of
334-
| each page
335-
|
336-
*/
337160
'show_version' => true,
338161

339-
/*
340-
|--------------------------------------------------------------------------
341-
| Show environment at footer
342-
|--------------------------------------------------------------------------
343-
|
344-
| Whether to display the environment at the footer of each page
345-
|
346-
*/
347162
'show_environment' => true,
348163

349-
/*
350-
|--------------------------------------------------------------------------
351-
| Menu bind to permission
352-
|--------------------------------------------------------------------------
353-
|
354-
| whether enable menu bind to a permission
355-
*/
356164
'menu_bind_permission' => true,
357165

358-
/*
359-
|--------------------------------------------------------------------------
360-
| Enable default breadcrumb
361-
|--------------------------------------------------------------------------
362-
|
363-
| Whether enable default breadcrumb for every page content.
364-
*/
166+
365167
'enable_default_breadcrumb' => true,
366168

367-
/*
368-
|--------------------------------------------------------------------------
369-
| Enable/Disable assets minify
370-
|--------------------------------------------------------------------------
371-
*/
372169
'minify_assets' => [
373170

374171
// Assets will not be minified.
@@ -377,47 +174,7 @@
377174
],
378175

379176
],
380-
381-
/*
382-
|--------------------------------------------------------------------------
383-
| Enable/Disable sidebar menu search
384-
|--------------------------------------------------------------------------
385-
*/
386-
'enable_menu_search' => true,
387-
388-
/*
389-
|--------------------------------------------------------------------------
390-
| Alert message that will displayed on top of the page.
391-
|--------------------------------------------------------------------------
392-
*/
393-
'top_alert' => '',
394-
395-
/*
396-
|--------------------------------------------------------------------------
397-
| The global Grid action display class.
398-
|--------------------------------------------------------------------------
399-
*/
400-
//'grid_action_class' => \Encore\Admin\Grid\Displayers\DropdownActions::class,
401-
402-
/*
403-
|--------------------------------------------------------------------------
404-
| Extension Directory
405-
|--------------------------------------------------------------------------
406-
|
407-
| When you use command `php artisan admin:extend` to generate extensions,
408-
| the extension files will be generated in this directory.
409-
*/
410177
'extension_dir' => app_path('Admin/Extensions'),
411-
412-
/*
413-
|--------------------------------------------------------------------------
414-
| Settings for extensions.
415-
|--------------------------------------------------------------------------
416-
|
417-
| You can find all available extensions here
418-
| https://github.com/laravel-admin-extensions.
419-
|
420-
*/
421178
'extensions' => [
422179

423180
],

0 commit comments

Comments
 (0)