Skip to content

Commit

Permalink
Update readme about laravel 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStack committed Jun 6, 2020
1 parent ff989c8 commit 83f468b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ before_script:
- composer self-update
- |-
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "7.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "6.*"
composer create-project --prefer-dist laravel/laravel cms "5.5.*"
else
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "6.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "5.7.*"
composer create-project --prefer-dist laravel/laravel cms "5.8.*"
else
composer create-project --prefer-dist laravel/laravel cms "${LARAVEL_VERSION}"
fi
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,18 @@ php artisan laravelcms --action=uninstall

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

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

```php
// Laravel 5.x
php artisan make:auth && php artisan migrate
// Laravel 6.x & Laravel >= 7
composer require laravel/ui && php artisan ui vue --auth
// Laravel 5.x, run blow command instead
php artisan make:auth && php artisan migrate
```

- After install the Auth package, please register the first user as the admin

## How to log into the backend /cmsadmin/?

- Amila CMS use your existing Laravel user system
Expand Down Expand Up @@ -183,12 +185,12 @@ php artisan laravelcms --action=clear
- 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")
- 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.

## How to set up a brand new Laravel 6.x website & install our CMS
## How to set up a brand new Laravel 6.x or 7.x website & install our CMS

- It's good for a local test

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

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

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

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

## What PHP versions do you support?

- Amila Laravel CMS passed the basic test on PHP 7.1, 7.2, 7.3, 7.4

## License

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

0 comments on commit 83f468b

Please sign in to comment.