Skip to content

Commit

Permalink
Merge pull request #82 from Laravel-Backpack/v5-support
Browse files Browse the repository at this point in the history
CRUD v5 support
  • Loading branch information
tabacitu authored Mar 7, 2022
2 parents 187736f + 70306a1 commit 7d6e58b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Binary file removed .DS_Store
Binary file not shown.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ _**Note:** this interface allows the admin to directly edit the language files s
> ### Security updates and breaking changes
> Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.
## Install in Backpack 4.1 (Laravel 6 or 7)
## Upgrading from 3.x to 4.x

- Flags are no longer supported on the Language CRUD, until version 3 admins could browse an image for the language flag, we now recommend developers to setup those images in advance, having them in a public folder like `public\flags\en.svg` `public\flags\ro.svg`.

## Install in Backpack 4.1 or 5.0 (Laravel 6, 7, 8 or 9)

### Step 1. Install via Composer

Expand Down Expand Up @@ -93,7 +97,7 @@ Or just try at **your-project-domain/admin/language/texts**

## Screenshots

See http://laravelbackpack.com
See https://backpackforlaravel.com/

## Change log

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
}
],
"require": {
"backpack/crud": "^4.1.0"
"backpack/crud": "^5.0"
},
"require-dev": {
"phpunit/phpunit" : "4.*",
"phpunit/phpunit" : "^9.0",
"scrutinizer/ocular": "~1.1"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/Http/Controllers/LanguageCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setupCreateOperation()
$this->crud->addField([
'name' => 'flag',
'label' => trans('backpack::langfilemanager.flag_image'),
'type' => 'browse',
'type' => backpack_pro() ? 'browse' : 'text',
]);
$this->crud->addField([
'name' => 'active',
Expand Down

0 comments on commit 7d6e58b

Please sign in to comment.