Skip to content

Commit 8262e01

Browse files
committed
Test upgrade from Laravel 7.x to Laravel 8.x
1 parent f049fbe commit 8262e01

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
[![image](docs/images/min/styleci.svg)](https://github.com/AlexStack/Laravel-CMS/releases)
66
[![Latest Stable Version](https://poser.pugx.org/alexstack/laravel-cms/v/stable)](https://github.com/AlexStack/Laravel-CMS/releases)
77

8-
- Free, open-source Simple Bootstrap Laravel CMS, support Laravel 7.x or 6.x or old Laravel 5.x
8+
- Free, open-source Simple Bootstrap Laravel CMS, support Laravel 8.x or 7.x or old Laravel 6.x & 5.x
99
- Can integrate with any existing Laravel project, install as an individual Laravel package
1010
- Only add a few database tables with a prefix, not effect your existing database tables.
1111
- You can easily custom the database table names, the page URL path(route) and the template(theme)
1212
- Build-in Website is ready after install. Easy to use, simple enough but flexible.
13-
- Basic Laravel 7.x /Laravel 6.x / Laravel 5.x syntax and blade template, no need to learn a "new language"
13+
- Basic Laravel 8.x/ Laravel 7.x /Laravel 6.x / Laravel 5.x syntax and blade template, no need to learn a "new language"
1414

15-
## How to install & uninstall (Support Laravel 7.x & Laravel 6.x & Laravel 5.x)
15+
## How to install & uninstall (Support Laravel 8.x & Laravel 7.x & Laravel 6.x & Laravel 5.x)
1616

1717
```php
1818
// Make sure you already configured the database in the .env
@@ -59,7 +59,7 @@ php artisan laravelcms --action=uninstall
5959
- Can be fixed by the below commands:
6060

6161
```php
62-
// Laravel 6.x & Laravel >= 7
62+
// Laravel 6.x & Laravel >= 7 & Laravel >= 8
6363
composer require laravel/ui && php artisan ui vue --auth
6464
// Laravel 5.x, run blow command instead
6565
php artisan make:auth && php artisan migrate
@@ -191,7 +191,7 @@ php artisan laravelcms --action=clear
191191
- It's good for a local test
192192

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

197197
// Then you need to change the database settings in the .env after that initialize CMS
@@ -201,7 +201,7 @@ php artisan laravelcms
201201
// Or initialize the CMS with silent mode
202202
php artisan laravelcms --action=initialize --locale=en --table_prefix=cms_  --silent=yes
203203

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

207207
// Config the document root to point to the cms/public then you can access the backend

src/resources/views/backend/file-list.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class="preview_link not_image icon" title="{{$file->filename}}">
141141
<a href="{{$helper->imageUrl($file, 'original','original') }}" target="_blank"
142142
title="{{$file->filename}}" class="preview_link not_image">{{strtoupper($file->suffix)}}
143143
{{$helper->t('file')}}<i class="fas fa-external-link-alt ml-1 small text-secondary"></i></a>
144-
{{($file->filesize/1024 > 1000) ? round($file->filesize/1024/1024,2) . ' MB' : ($file->filesize/1024 > 10) ? round($file->filesize/1024) . ' KB' : round($file->filesize/1024, 1) . ' KB' }}
144+
{{($file->filesize/1024 > 1000) ? round($file->filesize/1024/1024,2) . ' MB' : (($file->filesize/1024 > 10) ? round($file->filesize/1024) . ' KB' : round($file->filesize/1024, 1) . ' KB') }}
145145

146146
<a href="#" onclick="return confirmDelete({{$file->id}})" class="del">D<i
147147
class="far fa-trash-alt ml-1 small text-secondary"></i></a>

0 commit comments

Comments
 (0)