You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/installation.md
+29-24Lines changed: 29 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Installation
2
2
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 指令 :
4
4
5
5
```bash
6
6
composer require tcg/voyager
7
7
```
8
8
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:
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.
22
22
{% endhint %}
23
23
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.
If you prefer installing it with the dummy data run the following command:
35
+
若您想要使用含有虛擬資料的安裝方式請輸入以下指令
33
36
34
37
```bash
35
38
php artisan voyager:install --with-dummy
36
39
```
37
40
38
41
{% hint style="danger" %}
39
42
**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)
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
+
如果您
46
49
47
-
If you installed with the dummy data, a user has been created for you with the following login credentials:
And you will be prompted for the users name and password.
72
+
接著系統會要求您輸入帳號密碼即可完成創建管理員步驟。
70
73
71
-
## Advanced
74
+
## 進階安裝
72
75
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.
**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+ 請跳過此章節
87
90
{% endhint %}
88
91
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:
0 commit comments