Skip to content

Commit 7205dfa

Browse files
author
marsccyu
committed
1.0.2
installation 修改
1 parent 1604746 commit 7205dfa

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ php artisan voyager:install --with-dummy
7979
php artisan voyager:admin [email protected]
8080
```
8181

82-
如果您未創建虛擬資料,以下簡單的命令可以使您創造一個管理員帳號
82+
如果您未創建虛擬資料,以下的命令可以使您創造一個管理員帳號
8383

8484
```bash
8585
php artisan voyager:admin [email protected] --create

docs/getting-started/installation.md

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Installation
22

3-
Voyager is super easy to install. After creating your new Laravel application you can include the Voyager package with the following command:
3+
Voyager 非常便於安裝,在您建立您的 Laravel 應用後使用 composer 指令 :
44

55
```bash
66
composer require tcg/voyager
77
```
88

9-
Next make sure to create a new database and add your database credentials to your .env file, you will also want to add your application URL in the `APP_URL` variable:
9+
接著確認您建立了一個新的資料庫並將資料庫資料加入至 .env 檔案中,以及在 .env 內的 APP_URL 替換為您的應用程式網址
1010

1111
```text
1212
APP_URL=http://localhost
@@ -17,44 +17,47 @@ DB_PASSWORD=secret
1717
```
1818

1919
{% hint style="info" %}
20-
**Using Laravel 5.4?**
21-
If you are installing with Laravel 5.4 you will need to [add the Service Provider manually](installation.md#adding-the-service-provider). Otherwise, if you are on 5.5 this happens automatically thanks to package auto-discovery.
20+
**使用 Laravel 5.4?**
21+
如您使用 Laravel 5.4 請參閱 [add the Service Provider manually](installation.md#adding-the-service-provider). Otherwise, if you are on 5.5 this happens automatically thanks to package auto-discovery.
2222
{% endhint %}
2323

24-
Finally, we can install Voyager. You can choose to install Voyager with dummy data or without the dummy data. The dummy data will include 1 admin account \(if no users already exist\), 1 demo page, 4 demo posts, 2 categories and 7 settings.
24+
最後, 我們準備動手安裝 voyager.
2525

26-
To install Voyager without dummy data simply run
26+
您可以選擇簡單安裝或附有虛擬資料(dummy)的安裝方式,附帶虛擬資料的安裝內容包含 1 個管理者帳號(如果沒有使用者存在於資料表內)、1 個網頁、
27+
4 則文章、2 個分類及 7 個設定
28+
29+
不包含虛擬資料的簡單安裝
2730

2831
```bash
2932
php artisan voyager:install
3033
```
3134

32-
If you prefer installing it with the dummy data run the following command:
35+
若您想要使用含有虛擬資料的安裝方式請輸入以下指令
3336

3437
```bash
3538
php artisan voyager:install --with-dummy
3639
```
3740

3841
{% hint style="danger" %}
3942
**Specified key was too long error**
40-
If you see this error message you have an outdated version of MySQL, use the following solution: [https://laravel-news.com/laravel-5-4-key-too-long-error](https://laravel-news.com/laravel-5-4-key-too-long-error)
43+
若您看到以上訊息則表示您使用的 MySQL 版本過低, 請參閱以下解決方式: [https://laravel-news.com/laravel-5-4-key-too-long-error](https://laravel-news.com/laravel-5-4-key-too-long-error)
4144
{% endhint %}
4245

43-
And we're all good to go!
46+
輸入 `php artisan serve` 及訪問 [http://localhost:8000/admin](http://localhost:8000/admin) 開始您的開發吧
4447

45-
Start up a local development server with `php artisan serve` And, visit the URL [http://localhost:8000/admin](http://localhost:8000/admin) in your browser.
48+
如果您
4649

47-
If you installed with the dummy data, a user has been created for you with the following login credentials:
50+
如果您在安裝時包含了虛擬數據,則安裝完成後會一併建立以下的管理帳號 :
4851

49-
> **email:** `[email protected]`
50-
> **password:** `password`
52+
>**email:** `[email protected]`
53+
>**password:** `password`
5154
5255
{% hint style="info" %}
53-
**Quick note**
54-
A dummy user is **only** created if there are no current users in your database.
56+
**說明**
57+
只有在資料庫內未含有用戶資料時才會創建虛擬管理員
5558
{% endhint %}
5659

57-
If you did not go with the dummy user, you may wish to assign admin priveleges to an existing user. This can easily be done by running this command:
60+
如果您未創建虛擬資料,以下的命令可以使您創造一個管理員帳號
5861

5962
```bash
6063
php artisan voyager:admin [email protected]
@@ -66,27 +69,29 @@ If you wish to create a new admin user you can pass the `--create` flag, like so
6669
php artisan voyager:admin [email protected] --create
6770
```
6871

69-
And you will be prompted for the users name and password.
72+
接著系統會要求您輸入帳號密碼即可完成創建管理員步驟。
7073

71-
## Advanced
74+
## 進階安裝
7275

73-
This section is meant for users who are installing Voyager on an already existing Laravel installation or for users who want to perform a manual install. If this is not the case, you should go back to the [installation](installation.md) documentation or skip this section.
76+
本節適用於在現有 Laravel 安裝上安裝 Voyager 或希望執行手動安裝的用戶。若您非上述情形,請回到[installation](installation.md)或跳過本章捷
7477

75-
The first thing you should do is publish the assets that come with Voyager. You can do that by running the following commands:
78+
您應該做的第一件事是發布Voyager附帶的資產。您可以通過運行以下命令來執行此操作:
7679

7780
```bash
7881
php artisan vendor:publish --provider=VoyagerServiceProvider
7982
php artisan vendor:publish --provider=ImageServiceProviderLaravel5
8083
```
8184

82-
## Adding the Service Provider
85+
## 添加至服務提供者
8386

8487
{% hint style="info" %}
85-
**This is only required if you are using Laravel 5.4!**
86-
If you are on Laravel 5.5+ you can skip this step.
88+
**只針對使用 Laravel 5.4!**
89+
若您使用 Laravel 5.5+ 請跳過此章節
8790
{% endhint %}
8891

89-
To add the Voyager Service Provider open up your application `config/app.php` file and add `TCG\Voyager\VoyagerServiceProvider::class,` in the `providers` array like so:
92+
新增 Voyager 至服務提供者,請開打 `config/app.php`,並將 `TCG\Voyager\VoyagerServiceProvider::class,` 添加至 `providers` 陣列內。
93+
94+
9095

9196
```php
9297
<?php

docs/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
翻譯 Voyager 文件為中文便於開發時閱讀。
2+
3+
所有版權皆屬於 **[The Control Group](https://www.thecontrolgroup.com/)**

0 commit comments

Comments
 (0)