Skip to content

Commit 83f468b

Browse files
committed
Update readme about laravel 7 support
1 parent ff989c8 commit 83f468b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ before_script:
2525
- composer self-update
2626
- |-
2727
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "7.*" ]]; then
28-
composer create-project --prefer-dist laravel/laravel cms "6.*"
28+
composer create-project --prefer-dist laravel/laravel cms "5.5.*"
2929
else
3030
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "6.*" ]]; then
31-
composer create-project --prefer-dist laravel/laravel cms "5.7.*"
31+
composer create-project --prefer-dist laravel/laravel cms "5.8.*"
3232
else
3333
composer create-project --prefer-dist laravel/laravel cms "${LARAVEL_VERSION}"
3434
fi

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,18 @@ php artisan laravelcms --action=uninstall
5454

5555
## Error "Route [login] not defined" while access the backend /cmsadmin/
5656

57-
- This means you did not install Laravel Auth
57+
- This means you did not install Laravel Auth(User system)
5858
- Can be fixed by the below commands:
5959

6060
```php
61-
// Laravel 5.x
62-
php artisan make:auth && php artisan migrate
6361
// Laravel 6.x & Laravel >= 7
6462
composer require laravel/ui && php artisan ui vue --auth
63+
// Laravel 5.x, run blow command instead
64+
php artisan make:auth && php artisan migrate
6565
```
6666

67+
- After install the Auth package, please register the first user as the admin
68+
6769
## How to log into the backend /cmsadmin/?
6870

6971
- Amila CMS use your existing Laravel user system
@@ -183,12 +185,12 @@ php artisan laravelcms --action=clear
183185
- One simple option is to implement a method from your own PHP controller/class by adding it into a cms page. [Tutorial for it.](https://www.laravelcms.tech/Laravel-Advanced-Override-the-page-content-by-your-PHP-Class-method-function.html "Use your PHP class in a Laravel CMS page")
184186
- Another option is to create a CMS plugin for your own project and use it for all pages. [A tutorial is here.](https://www.laravelcms.tech/Laravel-Create-your-own-plugin.html "How to create a Laravel CMS Plugin") You can also publish the plugin if the feature can be used by other websites.
185187

186-
## How to set up a brand new Laravel 6.x website & install our CMS
188+
## How to set up a brand new Laravel 6.x or 7.x website & install our CMS
187189

188190
- It's good for a local test
189191

190192
```php
191-
// Install Laravel 6.x & the CMS package
193+
// Install Laravel 6.x/7.x & the CMS package
192194
composer create-project --prefer-dist laravel/laravel cms && cd cms && composer require alexstack/laravel-cms
193195

194196
// Then you need to change the database settings in the .env after that initialize CMS
@@ -198,7 +200,7 @@ php artisan laravelcms
198200
// Or initialize the CMS with silent mode
199201
php artisan laravelcms --action=initialize --locale=en --table_prefix=cms_  --silent=yes
200202

201-
// Enable auth system for Laravel 6.x
203+
// Enable auth system for Laravel 6.x/7.x
202204
composer require laravel/ui && php artisan ui vue --auth && php artisan migrate
203205

204206
// Config the document root to point to the cms/public then you can access the backend
@@ -224,6 +226,10 @@ composer require alexstack/laravel-cms && php artisan laravelcms --action=upgrad
224226
- The compiled js file is here: /public/laravel-cms/backend/js/reactLaravelCmsBackend.js
225227
- It can be switch to normal Laravel blade page by change the "react_js": true to false in the setting system.all_pages
226228

229+
## What PHP versions do you support?
230+
231+
- Amila Laravel CMS passed the basic test on PHP 7.1, 7.2, 7.3, 7.4
232+
227233
## License
228234

229235
- The Amila Laravel CMS is open-source software licensed under the MIT license.

0 commit comments

Comments
 (0)