Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Version 4.2 #2940

Closed
wants to merge 636 commits into from
Closed
Show file tree
Hide file tree
Changes from 115 commits
Commits
Show all changes
636 commits
Select commit Hold shift + click to select a range
dd47315
Merge pull request #4052 from Laravel-Backpack/fix-old-checklistdepen…
tabacitu Jan 5, 2022
47afad5
fix date_range names rewrite inside repeatable_row
tabacitu Jan 5, 2022
ec61fcd
relationship field - abort when used on unsupported relationships
tabacitu Jan 6, 2022
6d2b058
account for a model beeing returned
pxpm Jan 6, 2022
8a80096
Merge pull request #4032 from Laravel-Backpack/change-repeatable-name…
tabacitu Jan 6, 2022
49263be
refactor JS so field re-select values upon old
pxpm Jan 6, 2022
9b5fb76
make sure all fields with ANY relationships reach the relationship fi…
tabacitu Jan 6, 2022
2b5472a
Apply fixes from StyleCI
StyleCIBot Jan 6, 2022
967ba1a
revert
tabacitu Jan 6, 2022
019d697
relationship field treats ALL relationship types
tabacitu Jan 7, 2022
2443d7f
Merge pull request #4054 from Laravel-Backpack/reorganize-relationshi…
tabacitu Jan 7, 2022
145b298
move relationship field partials to inc subdirectory
tabacitu Jan 7, 2022
71190a0
inline field_attributes blade file since it's only used in one place
tabacitu Jan 7, 2022
8ed766a
renamed relationship_select to select
tabacitu Jan 7, 2022
d106008
renamed repeatable_relation to entries
tabacitu Jan 7, 2022
3e17d52
refactor variable name, fix repeatable name for multiple
pxpm Jan 7, 2022
ee48e3c
fix for multiple inputs
pxpm Jan 7, 2022
8c4bf32
init
pxpm Jan 7, 2022
1215e9d
refactor and add function to ajax fields
pxpm Jan 7, 2022
15df709
Apply suggestions from code review
tabacitu Jan 8, 2022
4b3a3d8
add entry for hasOne/MorphOne
pxpm Jan 10, 2022
d7c599c
Apply fixes from StyleCI
StyleCIBot Jan 10, 2022
e07803f
refactor condition
pxpm Jan 10, 2022
7de7410
Merge branch 'create-relationship-entry' of https://github.com/Larave…
pxpm Jan 10, 2022
53c3e82
Apply fixes from StyleCI
StyleCIBot Jan 10, 2022
0a6bf7a
Update address_google.blade.php
beatwiz Jan 10, 2022
0dab494
Merge pull request #4055 from Laravel-Backpack/select_nested
tabacitu Jan 10, 2022
5bbdf1d
fix date_range field not picking up the correct field value as array
tabacitu Jan 10, 2022
a6afeb3
set field value for checklist_dependency with the same code as for da…
tabacitu Jan 10, 2022
4bedd5e
subfields are to be accounted as relationships only if field name is …
tabacitu Jan 10, 2022
365d40f
make default min_rows in repeatable zero
tabacitu Jan 11, 2022
3a0c700
fix date_range value inside repeatable
tabacitu Jan 11, 2022
94d6a80
Merge pull request #4063 from Laravel-Backpack/refactor-repeatable-names
tabacitu Jan 11, 2022
d64bc09
Merge branch '4.2' into fix-checklist-old
tabacitu Jan 11, 2022
458d5bb
Merge pull request #4057 from Laravel-Backpack/fix-checklist-old
tabacitu Jan 11, 2022
7c37cbe
Merge branch '4.2' of https://github.com/Laravel-Backpack/CRUD into d…
tabacitu Jan 11, 2022
7136cc1
fixed indenting in fetch_or_create
tabacitu Jan 11, 2022
59e350a
Merge branch '4.2' into first-draft-pivot-selector
tabacitu Jan 11, 2022
0332ca9
Merge pull request #4064 from Laravel-Backpack/first-draft-pivot-sele…
tabacitu Jan 11, 2022
344e5a1
clean up indentation in fetch and fetch_or_create
tabacitu Jan 11, 2022
9260348
Merge branch 'first-draft-pivot-selector' into 4.2
tabacitu Jan 11, 2022
de850cb
Merge branch '4.2' into create-relationship-entry
tabacitu Jan 11, 2022
7ff873d
relationship field - remove abort that HasOne is not supported in fav…
tabacitu Jan 11, 2022
ddb40e8
add hidden inputs to be send when field is cleared
pxpm Jan 11, 2022
ef5db31
Merge pull request #4070 from Laravel-Backpack/repeatable-min-rows-zero
tabacitu Jan 11, 2022
be1eb0f
Merge pull request #4072 from Laravel-Backpack/fix-checklist-dependen…
tabacitu Jan 11, 2022
e4ed889
refactor and fix
pxpm Jan 11, 2022
c3f25ac
Merge branch '4.2' into create-relationship-entry
pxpm Jan 11, 2022
1d3a4d8
Apply fixes from StyleCI
StyleCIBot Jan 11, 2022
7d18564
add tests for create has one with repeatable interface
pxpm Jan 11, 2022
858a2f8
Merge branch 'create-relationship-entry' of https://github.com/Larave…
pxpm Jan 11, 2022
0b35cb5
Apply fixes from StyleCI
StyleCIBot Jan 11, 2022
d4872d8
added very verbose comments to HasOne and MorphOne saving process
tabacitu Jan 12, 2022
9afdbf8
fix corner case in hasOne and morphOne saving
tabacitu Jan 12, 2022
20f116b
Apply fixes from StyleCI
StyleCIBot Jan 12, 2022
2a36c4c
Merge pull request #4066 from Laravel-Backpack/create-relationship-entry
tabacitu Jan 12, 2022
472f595
Merge branch '4.2' into move-relationship-partials-to-inc-subdirectory
tabacitu Jan 12, 2022
cebd2e2
Merge pull request #4062 from Laravel-Backpack/move-relationship-part…
tabacitu Jan 12, 2022
22be5d7
Merge branch '4.2' into fix-corner-case-in-hasone-morphone-saving
pxpm Jan 12, 2022
9f1fb89
repeatable subfields are not relationships
pxpm Jan 12, 2022
f0246e2
Apply fixes from StyleCI
StyleCIBot Jan 12, 2022
07b1314
refactor adding subfield without entity to be downstream
tabacitu Jan 13, 2022
8fb8173
Merge pull request #4077 from Laravel-Backpack/subfields-in-repeatabl…
tabacitu Jan 13, 2022
28cb7b4
Merge pull request #4075 from Laravel-Backpack/fix-corner-case-in-has…
tabacitu Jan 13, 2022
097bcad
Merge branch 'do-not-use-subfields-attribute-only-for-checklist-depen…
tabacitu Jan 13, 2022
b5674d3
rename "fields" attribute to "subfields" in repeatable and relationsh…
tabacitu Jan 13, 2022
41f8042
Merge branch '4.2' of https://github.com/Laravel-Backpack/CRUD into d…
tabacitu Jan 13, 2022
d537da0
menually configure the pivot field
pxpm Jan 13, 2022
87b0f04
fix data source in pivot field
pxpm Jan 13, 2022
8f08611
remove uneeded attribute definition
pxpm Jan 13, 2022
922c291
Merge branch 'fix-pivot-field-in-repeatable' into 4.2
tabacitu Jan 14, 2022
8391843
make repeatable subfields text by default
tabacitu Jan 14, 2022
34785a0
Merge pull request #4082 from Laravel-Backpack/make-repeatable-subfie…
tabacitu Jan 14, 2022
5a85c48
Update src/resources/views/crud/fields/relationship.blade.php
tabacitu Jan 14, 2022
9d3e8ab
Update src/resources/views/crud/fields/repeatable.blade.php
tabacitu Jan 14, 2022
a218a62
Update src/resources/views/crud/fields/relationship/entries.blade.php
tabacitu Jan 14, 2022
78e24d5
Update src/resources/views/crud/fields/relationship/entries.blade.php
tabacitu Jan 14, 2022
ae9513f
Merge pull request #4078 from Laravel-Backpack/rename-fields-to-subfi…
tabacitu Jan 14, 2022
e53ca79
Merge branch '4.2' into do-not-use-subfields-attribute-only-for-check…
tabacitu Jan 14, 2022
7ce65db
Merge pull request #4069 from Laravel-Backpack/do-not-use-subfields-a…
tabacitu Jan 14, 2022
0cb6da0
update tests, use subfields for relations
pxpm Jan 14, 2022
d8f212d
added orderColumn feature to repeatable relations
pxpm Jan 14, 2022
e2eb1ec
Apply fixes from StyleCI
StyleCIBot Jan 14, 2022
4b4b08d
Merge pull request #4083 from Laravel-Backpack/leftover-for-pivot-fields
tabacitu Jan 14, 2022
38a0e2d
refactor reorder
pxpm Jan 14, 2022
8405170
Merge branch 'order-for-repeatable' of https://github.com/Laravel-Bac…
pxpm Jan 14, 2022
47385c4
Apply fixes from StyleCI
StyleCIBot Jan 14, 2022
77d6011
remove unused code
pxpm Jan 14, 2022
f81a038
fix
pxpm Jan 14, 2022
9e66f91
fix
pxpm Jan 14, 2022
cda3461
remove unused code
pxpm Jan 14, 2022
57b1f32
Update src/resources/views/crud/fields/relationship/entries.blade.php
pxpm Jan 14, 2022
243eafa
Merge branch '4.2' into order-for-repeatable
tabacitu Jan 15, 2022
aef25c4
get all pivot attributes in one go
tabacitu Jan 15, 2022
73963da
Moving first column buttons back to the first column
promatik Jan 17, 2022
0a73ae8
Merge branch '4.2' into fix-bulk-actions-css-datatable-first-column
tabacitu Jan 17, 2022
7cda088
keep the same line-height as before
tabacitu Jan 17, 2022
80c3051
Merge branch '4.2' into order-for-repeatable
pxpm Jan 17, 2022
aa820d9
refactor order to repeatable
pxpm Jan 17, 2022
0636854
Merge pull request #4086 from Laravel-Backpack/get-all-pivot-attribut…
tabacitu Jan 17, 2022
b565e89
Merge pull request #4084 from Laravel-Backpack/order-for-repeatable
tabacitu Jan 17, 2022
6519633
add Laravel 9 support to Backpack 4.2
tabacitu Jan 19, 2022
187735a
support L9 moving /lang directory one level up
tabacitu Jan 19, 2022
961cd1d
Merge pull request #4094 from Laravel-Backpack/support-laravel-9
tabacitu Jan 19, 2022
2a988a1
only enable or disable options that has value
pxpm Jan 19, 2022
33c4c9b
relations should be created in a closed loop so they can be chained
pxpm Jan 19, 2022
7e45169
Apply fixes from StyleCI
StyleCIBot Jan 19, 2022
81d2b74
remove unused function
pxpm Jan 19, 2022
4a3c91f
Merge branch 'create-all-relations-at-same-time' of https://github.co…
pxpm Jan 19, 2022
b476b4a
Merge pull request #4096 from Laravel-Backpack/fix-removing-pivots-wi…
tabacitu Jan 19, 2022
a5aa933
Merge branch '4.2' into create-all-relations-at-same-time
tabacitu Jan 20, 2022
4a62405
Merge branch '4.2' into multiple-view-namespaces-for-fields-columns-etc
tabacitu Jan 20, 2022
c75ddec
Merge pull request #3967 from Laravel-Backpack/multiple-view-namespac…
tabacitu Jan 20, 2022
e647620
refactor, add helper add tests
pxpm Jan 20, 2022
3edbb6c
Apply fixes from StyleCI
StyleCIBot Jan 20, 2022
3e67880
Merge branch '4.2' into create-all-relations-at-same-time
pxpm Jan 20, 2022
29ad723
refactor names - no more data!
pxpm Jan 20, 2022
6257648
fix conflicts
tabacitu Jan 21, 2022
62821b9
bump L8 requirement to 8.26 to have Str::markdown
tabacitu Jan 21, 2022
46df002
Merge pull request #4102 from Laravel-Backpack/lakuapik-patch-1
tabacitu Jan 21, 2022
c93d495
bump php in scrutinizer to v8
tabacitu Jan 21, 2022
7624b57
Update src/resources/views/crud/fields/address_google.blade.php
tabacitu Jan 21, 2022
4e98c34
Merge branch 'master' of https://github.com/Laravel-Backpack/CRUD int…
tabacitu Jan 21, 2022
145609d
Merge pull request #4104 from Laravel-Backpack/merge-master-into-4.2-…
tabacitu Jan 21, 2022
b6f6a62
Merge pull request #4067 from beatwiz/patch-1
tabacitu Jan 21, 2022
073aec5
refactor
pxpm Jan 21, 2022
bd39509
Apply fixes from StyleCI
StyleCIBot Jan 21, 2022
40ee899
Merge branch '4.2' into create-all-relations-at-same-time
pxpm Jan 21, 2022
876674d
refactor
pxpm Jan 21, 2022
c268c67
Apply fixes from StyleCI
StyleCIBot Jan 21, 2022
bc31995
should only replace relation names
pxpm Jan 21, 2022
3170020
Apply fixes from StyleCI
StyleCIBot Jan 21, 2022
f166a74
automatically guess subfield attributes
tabacitu Jan 22, 2022
e25b2d3
show clear error page if relationship model guessing goes wrong
tabacitu Jan 22, 2022
9074f9c
relationship pivotField should use the main CRUD model
tabacitu Jan 22, 2022
a8c6e8c
Apply fixes from StyleCI
StyleCIBot Jan 22, 2022
4abdc37
Merge pull request #4095 from Laravel-Backpack/create-all-relations-a…
tabacitu Jan 23, 2022
b1f694f
subfields should default to text and entity false if not part of a re…
tabacitu Jan 23, 2022
1f3b090
Merge pull request #4112 from Laravel-Backpack/auto-guess-subfield-at…
tabacitu Jan 23, 2022
5463bf8
Merge branch 'master' into 4.2
tabacitu Jan 24, 2022
b3bdf57
fix select_multiple field on editing
tabacitu Jan 24, 2022
ca3a762
Update select_multiple.blade.php
tabacitu Jan 24, 2022
c83f6ce
Merge pull request #4114 from Laravel-Backpack/fix-select-multiple
tabacitu Jan 24, 2022
a517d7e
Fixed alignments on datatables
promatik Jan 24, 2022
0f3e2d9
Merge branch 'fix-bulk-actions-css-datatable-first-column' of https:/…
promatik Jan 24, 2022
2f71ff4
Merge branch '4.2' into fix-bulk-actions-css-datatable-first-column
tabacitu Jan 25, 2022
2177f49
Merge pull request #4087 from Laravel-Backpack/fix-bulk-actions-css-d…
tabacitu Jan 25, 2022
46677a3
change default column limit to 32
tabacitu Jan 25, 2022
8825ed2
Merge pull request #4119 from Laravel-Backpack/change-default-column-…
tabacitu Jan 25, 2022
46e40a4
fluent fields - guess everything again after each attribute change
tabacitu Jan 25, 2022
2182596
moved subfield attribute guessing from Blade to PHP
tabacitu Jan 25, 2022
f8d1560
Apply fixes from StyleCI
StyleCIBot Jan 25, 2022
e14c65f
add subfields method to CrudField
tabacitu Jan 25, 2022
252f5c9
Apply fixes from StyleCI
StyleCIBot Jan 25, 2022
1a1e4b0
fix CrudField::subfields() method calling wrong method
tabacitu Jan 26, 2022
7ced354
explicitly define all pivotSelectorField attributes, now that it's no…
tabacitu Jan 26, 2022
49f4f9a
use baseModel when present and fallback to crud model
pxpm Jan 26, 2022
cb3faf7
Merge pull request #4122 from Laravel-Backpack/subfields-with-attribu…
tabacitu Jan 26, 2022
193d0b7
Merge branch '4.2' into use-create-recursively
pxpm Jan 26, 2022
85aadba
separated create method into reusable functions
pxpm Jan 27, 2022
7b79179
account for baseModel and baseEntity and fix the change of names for …
pxpm Jan 28, 2022
da1f5f3
remove unused relation classes
pxpm Jan 28, 2022
c5cbd92
add $model as optional parameter and replace $data with $input
pxpm Jan 28, 2022
6de78eb
move pivot field definition to crud panel instead of blade
pxpm Jan 28, 2022
058939f
add optional parameter when changing belongs to field names
pxpm Jan 28, 2022
bb7489d
encapsulate search parameter so it also accepts dots
pxpm Jan 28, 2022
111fd03
use provided fields instead of nested
pxpm Jan 28, 2022
c857a02
create method to get excluded inputs from saving process
pxpm Jan 28, 2022
48c1b6c
add optional parameter $fields to getRelationFields()
pxpm Jan 28, 2022
74f77cd
remove unused code
pxpm Jan 28, 2022
6409dca
optimize code, update saving process
pxpm Jan 28, 2022
b343165
pass along fields and model to exactly match the ones in a given rela…
pxpm Jan 28, 2022
e72fb45
add createManyEntries docblock
pxpm Jan 28, 2022
b1b5622
optimize createMany (hasmany/morphmany) creation
pxpm Jan 28, 2022
05dae3a
refactor variable names, fix morphMany when selectable saving
pxpm Jan 28, 2022
f4b4b06
add parameters needed to correctly infer the direct input
pxpm Jan 30, 2022
1d124ba
add parameter and fix fields that should be excluded
pxpm Jan 30, 2022
5855e34
add function that returns if the given belongsto field should be excl…
pxpm Jan 30, 2022
f0f561f
refactor parsedInputs function signature
pxpm Jan 30, 2022
97ef2c6
remove unused function
pxpm Jan 30, 2022
bc40d7c
remove unused function
pxpm Jan 30, 2022
ee62552
fix hasMany morphMany
pxpm Jan 30, 2022
e4f721f
fix tests, add tests for nested relations
pxpm Jan 30, 2022
13f2826
allow dot notation names inside repeatable
pxpm Jan 30, 2022
4525fe5
make update() method conformable with create()
pxpm Jan 30, 2022
45e9d94
account for receiving the belongs to fields when treating nested rela…
pxpm Jan 30, 2022
bfa9b8c
create the relations based on the input, fields and relationMethod pa…
pxpm Jan 30, 2022
b5127c6
fix for new relation array format
pxpm Jan 30, 2022
4d72fac
fix display of relations and fake attributes when inside relations
pxpm Jan 30, 2022
c393cb2
add docblocks, create function to get subfields values
pxpm Jan 30, 2022
571420b
Apply fixes from StyleCI
StyleCIBot Jan 30, 2022
7ffaea0
encapsulate search parameter so it also accepts dots
pxpm Jan 28, 2022
45721dd
add $model as optional parameter and replace $data with $input
pxpm Jan 28, 2022
8c755b5
Apply fixes from StyleCI
StyleCIBot Jan 31, 2022
6922faf
make the return consistent by allways adding fakes when a model is re…
pxpm Jan 31, 2022
acb2962
refactor variable names, fix docblocks
pxpm Jan 31, 2022
9363fba
refactor function names, improve readability, fix docblocs
pxpm Jan 31, 2022
aec0abb
Apply fixes from StyleCI
StyleCIBot Jan 31, 2022
f1f5e1f
remove unused code, rename function and change logic of input parsing
pxpm Jan 31, 2022
f7eaa69
return a collection of models instead of an array of models, fix fiel…
pxpm Jan 31, 2022
91f7b32
Apply fixes from StyleCI
StyleCIBot Jan 31, 2022
0850608
remove unused code
pxpm Jan 31, 2022
d06059d
change order of methods in Create trait
tabacitu Feb 1, 2022
8351508
remove spaces in Update trait
tabacitu Feb 1, 2022
a491d5c
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
09826c0
moved new input-related methods to a separate trait
tabacitu Feb 1, 2022
bd44987
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
1c3dacd
better error message when relationship is missing for relationship field
tabacitu Feb 1, 2022
fa50860
Merge branch '4.2' into use-create-recursively
tabacitu Feb 1, 2022
b8d7344
add docblock to createManyEntries on Create trait
tabacitu Feb 1, 2022
e54985d
change variable names from snake_case to camelCase
tabacitu Feb 1, 2022
88657f3
Merge branch '4.2' into use-create-recursively
tabacitu Feb 1, 2022
58f8c64
revert select_grouped change
pxpm Feb 1, 2022
96a97fd
Merge branch 'use-create-recursively' of https://github.com/Laravel-B…
pxpm Feb 1, 2022
6dffa34
Load fakes into model and don't get attribute from relationship if fi…
pxpm Feb 1, 2022
b33ca7c
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
fa95a5a
refactor relationEntity into entity as it were previously
pxpm Feb 1, 2022
a2661dd
account for null of iterator, means empty fields
pxpm Feb 1, 2022
5f89518
account for collections and convert them to arrays.
pxpm Feb 1, 2022
8504b13
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
443939f
make subfields work when nested and fix selects that use fake relatio…
pxpm Feb 1, 2022
56f5607
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
e0d5a32
add comment why no other relations are treated there.
pxpm Feb 1, 2022
7ccc256
Apply fixes from StyleCI
StyleCIBot Feb 1, 2022
1ab2d06
revert change to select2_grouped
tabacitu Feb 2, 2022
bf25132
change variable names in Relationships::changeBelongsToNamesFromRelat…
tabacitu Feb 2, 2022
8add5c5
cleaner dockblock
tabacitu Feb 2, 2022
4e6f3c9
Apply fixes from StyleCI
StyleCIBot Feb 2, 2022
1a94ecc
reorder 3 lines inside makeSureSubfieldsHaveNecessaryAttributes for c…
tabacitu Feb 2, 2022
cfe49dd
Merge branch 'use-create-recursively' into fake-fields-working
tabacitu Feb 2, 2022
18edb50
return the connecting key for belongsTo relations
pxpm Feb 2, 2022
dfe8159
remove uneeded fixes
pxpm Feb 2, 2022
43e196e
used array merge for pivot configurations
pxpm Feb 2, 2022
636898d
added comment explaining why repeatable is aware of collections too
pxpm Feb 2, 2022
89650cf
refactoring $collection[] = or $collection->push() does the same, but…
pxpm Feb 2, 2022
41f9d00
Apply fixes from StyleCI
StyleCIBot Feb 2, 2022
d2ca3d5
Merge branch 'use-create-recursively' into fake-fields-working
pxpm Feb 2, 2022
17a76f1
remove field changes
pxpm Feb 2, 2022
708535a
Merge pull request #4127 from Laravel-Backpack/use-create-recursively
tabacitu Feb 2, 2022
f880b9d
Merge pull request #4129 from Laravel-Backpack/fake-fields-working
tabacitu Feb 2, 2022
0165d4c
transform collections into arrays in multiple fields
pxpm Feb 2, 2022
2f87fea
Merge pull request #4139 from Laravel-Backpack/account-for-collection…
tabacitu Feb 2, 2022
ccee07a
Merge branch '4.2' into column-table-to-work-with-single-dimension-ar…
pxpm Feb 3, 2022
5556463
guarantee an array in html, add new function check
pxpm Feb 3, 2022
13b687b
validation inside repeatable for nested relations, remove 4.1 specifi…
pxpm Feb 3, 2022
3e5c41e
Apply fixes from StyleCI
StyleCIBot Feb 3, 2022
4e50fa5
Simplified validation
promatik Feb 3, 2022
04871ee
Merge pull request #3387 from Laravel-Backpack/column-table-to-work-w…
tabacitu Feb 4, 2022
4dd3b3b
Merge pull request #4150 from Laravel-Backpack/validation-for-repeatable
tabacitu Feb 4, 2022
48f14aa
Merge pull request #3376 from Laravel-Backpack/fix-select2-filters
tabacitu Feb 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 2 additions & 15 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,11 @@ jobs:
# run all combinations of the following, to make sure they're working together
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
php: [7.2, 7.3, 7.4, 8.0]
php: [7.3, 7.4, 8.0]
dbal: [^2.5, ^3.0]
laravel: [6.*, 7.*, 8.*]
laravel: [8.*]
phpunit: [8.*, 9.*]
dependency-version: [stable] # to add: lowest
exclude:
- php: 7.2
phpunit: 9.*
- laravel: 8.*
php: 7.2
- laravel: 8.*
phpunit: 8.*
- php: 7.2
dbal: ^3.0
- dbal: ^3.0
laravel: 6.*
- dbal: ^3.0
laravel: 7.*

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, PHPUnit ${{ matrix.phpunit }}, DBAL ${{ matrix.dbal }} --prefer-${{ matrix.dependency-version }}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
],
"require": {
"laravel/framework": "^8.0|^7.0|^6.0",
"laravel/framework": "^8.0",
"prologue/alerts": "^0.4.1",
"creativeorange/gravatar": "~1.0",
"composer/package-versions-deprecated": "^1.8",
Expand Down
23 changes: 14 additions & 9 deletions mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"/src/public/packages/backpack/base/js/bundle.js": "/src/public/packages/backpack/base/js/bundle.js",
"/src/public/packages/backpack/base/css/blue-bundle.css": "/src/public/packages/backpack/base/css/blue-bundle.css",
"/src/public/packages/backpack/base/css/bundle.css": "/src/public/packages/backpack/base/css/bundle.css",
"/src/public/packages/backpack/base/css/blue-bundle.css": "/src/public/packages/backpack/base/css/blue-bundle.css",
"/src/public/packages/@digitallyhappy/backstrap/css/blue.css": "/src/public/packages/@digitallyhappy/backstrap/css/blue.css",
"/src/public/packages/@digitallyhappy/backstrap/css/blue.css.map": "/src/public/packages/@digitallyhappy/backstrap/css/blue.css.map",
"/src/public/packages/@digitallyhappy/backstrap/css/blue.min.css": "/src/public/packages/@digitallyhappy/backstrap/css/blue.min.css",
Expand All @@ -16,6 +16,7 @@
"/src/public/packages/source-sans-pro/source-sans-pro.css": "/src/public/packages/source-sans-pro/source-sans-pro.css",
"/src/public/packages/source-sans-pro/source-sans-variable.css": "/src/public/packages/source-sans-pro/source-sans-variable.css",
"/src/public/packages/animate.css/animate.min.css": "/src/public/packages/animate.css/animate.min.css",
"/src/public/packages/animate.css/animate.compat.css": "/src/public/packages/animate.css/animate.compat.css",
"/src/public/packages/noty/noty.css": "/src/public/packages/noty/noty.css",
"/src/public/packages/noty/noty.css.map": "/src/public/packages/noty/noty.css.map",
"/src/public/packages/noty/noty.js": "/src/public/packages/noty/noty.js",
Expand Down Expand Up @@ -79,28 +80,31 @@
"/src/public/packages/simplemde/dist/simplemde.min.js": "/src/public/packages/simplemde/dist/simplemde.min.js",
"/src/public/packages/easymde/dist/easymde.min.css": "/src/public/packages/easymde/dist/easymde.min.css",
"/src/public/packages/easymde/dist/easymde.min.js": "/src/public/packages/easymde/dist/easymde.min.js",
"/src/public/packages/summernote/dist/summernote-0.8.18-dist.zip": "/src/public/packages/summernote/dist/summernote-0.8.18-dist.zip",
"/src/public/packages/summernote/dist/summernote-0.8.20-dist.zip": "/src/public/packages/summernote/dist/summernote-0.8.20-dist.zip",
"/src/public/packages/summernote/dist/summernote-bs4.css": "/src/public/packages/summernote/dist/summernote-bs4.css",
"/src/public/packages/summernote/dist/summernote-bs4.css.map": "/src/public/packages/summernote/dist/summernote-bs4.css.map",
"/src/public/packages/summernote/dist/summernote-bs4.js": "/src/public/packages/summernote/dist/summernote-bs4.js",
"/src/public/packages/summernote/dist/summernote-bs4.js.map": "/src/public/packages/summernote/dist/summernote-bs4.js.map",
"/src/public/packages/summernote/dist/summernote-bs4.min.css": "/src/public/packages/summernote/dist/summernote-bs4.min.css",
"/src/public/packages/summernote/dist/summernote-bs4.min.js": "/src/public/packages/summernote/dist/summernote-bs4.min.js",
"/src/public/packages/summernote/dist/summernote-bs4.min.js.LICENSE.txt": "/src/public/packages/summernote/dist/summernote-bs4.min.js.LICENSE.txt",
"/src/public/packages/summernote/dist/summernote-bs4.min.js.map": "/src/public/packages/summernote/dist/summernote-bs4.min.js.map",
"/src/public/packages/summernote/dist/summernote-bs5.css": "/src/public/packages/summernote/dist/summernote-bs5.css",
"/src/public/packages/summernote/dist/summernote-bs5.css.map": "/src/public/packages/summernote/dist/summernote-bs5.css.map",
"/src/public/packages/summernote/dist/summernote-bs5.js": "/src/public/packages/summernote/dist/summernote-bs5.js",
"/src/public/packages/summernote/dist/summernote-bs5.js.map": "/src/public/packages/summernote/dist/summernote-bs5.js.map",
"/src/public/packages/summernote/dist/summernote-bs5.min.css": "/src/public/packages/summernote/dist/summernote-bs5.min.css",
"/src/public/packages/summernote/dist/summernote-bs5.min.js": "/src/public/packages/summernote/dist/summernote-bs5.min.js",
"/src/public/packages/summernote/dist/summernote-lite.css": "/src/public/packages/summernote/dist/summernote-lite.css",
"/src/public/packages/summernote/dist/summernote-lite.css.map": "/src/public/packages/summernote/dist/summernote-lite.css.map",
"/src/public/packages/summernote/dist/summernote-lite.js": "/src/public/packages/summernote/dist/summernote-lite.js",
"/src/public/packages/summernote/dist/summernote-lite.js.map": "/src/public/packages/summernote/dist/summernote-lite.js.map",
"/src/public/packages/summernote/dist/summernote-lite.min.css": "/src/public/packages/summernote/dist/summernote-lite.min.css",
"/src/public/packages/summernote/dist/summernote-lite.min.js": "/src/public/packages/summernote/dist/summernote-lite.min.js",
"/src/public/packages/summernote/dist/summernote-lite.min.js.LICENSE.txt": "/src/public/packages/summernote/dist/summernote-lite.min.js.LICENSE.txt",
"/src/public/packages/summernote/dist/summernote-lite.min.js.map": "/src/public/packages/summernote/dist/summernote-lite.min.js.map",
"/src/public/packages/summernote/dist/summernote.css": "/src/public/packages/summernote/dist/summernote.css",
"/src/public/packages/summernote/dist/summernote.css.map": "/src/public/packages/summernote/dist/summernote.css.map",
"/src/public/packages/summernote/dist/summernote.js": "/src/public/packages/summernote/dist/summernote.js",
"/src/public/packages/summernote/dist/summernote.js.map": "/src/public/packages/summernote/dist/summernote.js.map",
"/src/public/packages/summernote/dist/summernote.min.css": "/src/public/packages/summernote/dist/summernote.min.css",
"/src/public/packages/summernote/dist/summernote.min.js": "/src/public/packages/summernote/dist/summernote.min.js",
"/src/public/packages/summernote/dist/summernote.min.js.LICENSE.txt": "/src/public/packages/summernote/dist/summernote.min.js.LICENSE.txt",
"/src/public/packages/summernote/dist/summernote.min.js.map": "/src/public/packages/summernote/dist/summernote.min.js.map",
"/src/public/packages/tinymce/CHANGELOG.md": "/src/public/packages/tinymce/CHANGELOG.md",
"/src/public/packages/tinymce/README.md": "/src/public/packages/tinymce/README.md",
"/src/public/packages/tinymce/bower.json": "/src/public/packages/tinymce/bower.json",
Expand Down Expand Up @@ -137,5 +141,6 @@
"/src/public/packages/datatables.net-responsive/package.json": "/src/public/packages/datatables.net-responsive/package.json",
"/src/public/packages/datatables.net-responsive-bs4/License.txt": "/src/public/packages/datatables.net-responsive-bs4/License.txt",
"/src/public/packages/datatables.net-responsive-bs4/Readme.md": "/src/public/packages/datatables.net-responsive-bs4/Readme.md",
"/src/public/packages/datatables.net-responsive-bs4/package.json": "/src/public/packages/datatables.net-responsive-bs4/package.json"
"/src/public/packages/datatables.net-responsive-bs4/package.json": "/src/public/packages/datatables.net-responsive-bs4/package.json",
"/src/public/packages/URI.js/URI.min.js": "/src/public/packages/URI.js/URI.min.js"
}
41 changes: 26 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"dependencies": {
"@coreui/coreui": "^2.1.16",
"@digitallyhappy/backstrap": "^0.3.4",
"animate.css": "^3.7.2",
"@digitallyhappy/backstrap": "^0.4.0",
"animate.css": "^4.1.1",
"bootstrap": "^4.6.0",
"bootstrap-colorpicker": "^3.4.0",
"bootstrap-datepicker": "^1.9.0",
Expand Down Expand Up @@ -59,6 +59,7 @@
"source-sans-pro": "^3.6",
"summernote": "^0.8.20",
"sweetalert": "^2.1.2",
"tinymce": "^5.10.0"
"tinymce": "^5.10.0",
"urijs": "^1.19.6"
}
}
10 changes: 0 additions & 10 deletions src/app/Http/Controllers/Operations/FetchOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ private function fetch($arg)
$config['searchable_attributes'] = $config['searchable_attributes'] ?? $model_instance->identifiableAttribute();
$config['query'] = isset($config['query']) && is_callable($config['query']) ? $config['query']($model_instance) : $model_instance; // if a closure that has been passed as "query", use the closure - otherwise use the model

// FetchOperation is aware of an optional parameter 'keys' that will fetch you the entity/entities that match the provided keys
if (request()->has('keys')) {
$array_keys = request()->get('keys');
if (is_array($array_keys)) {
return $model_instance->whereIn($model_instance->getKeyName(), $array_keys)->get();
} else {
return $model_instance->where($model_instance->getKeyName(), $array_keys)->get();
}
}

// FetchOperation sends an empty query to retrieve the default entry for select when field is not nullable.
// Also sends an empty query in case we want to load all entities to emulate non-ajax fields
// when using InlineCreate.
Expand Down
2 changes: 1 addition & 1 deletion src/app/Http/Controllers/Operations/ReorderOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function saveReorder()
{
$this->crud->hasAccessOrFail('reorder');

$all_entries = \Request::input('tree');
$all_entries = json_decode(\Request::input('tree'), true);

if (count($all_entries)) {
$count = $this->crud->updateTreeOrder($all_entries);
Expand Down
4 changes: 2 additions & 2 deletions src/app/Http/Controllers/Operations/ShowOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ protected function setupShowDefaults()
'redirect' => function ($crud, $request, $itemId = null) {
$itemId = $itemId ?: $request->input('id');
$redirectUrl = $crud->route.'/'.$itemId.'/show';
if ($request->has('locale')) {
$redirectUrl .= '?locale='.$request->input('locale');
if ($request->has('_locale')) {
$redirectUrl .= '?_locale='.$request->input('_locale');
}

return $redirectUrl;
Expand Down
10 changes: 6 additions & 4 deletions src/app/Http/Controllers/Operations/UpdateOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ protected function setupUpdateDefaults()

if ($this->crud->getModel()->translationEnabled()) {
$this->crud->addField([
'name' => 'locale',
'name' => '_locale',
'type' => 'hidden',
'value' => request()->input('locale') ?? app()->getLocale(),
'value' => request()->input('_locale') ?? app()->getLocale(),
]);
}

Expand Down Expand Up @@ -90,8 +90,10 @@ public function update()
// execute the FormRequest authorization and validation, if one is required
$request = $this->crud->validateRequest();
// update the row in the db
$item = $this->crud->update($request->get($this->crud->model->getKeyName()),
$this->crud->getStrippedSaveRequest());
$item = $this->crud->update(
$request->get($this->crud->model->getKeyName()),
$this->crud->getStrippedSaveRequest()
);
$this->data['entry'] = $this->crud->entry = $item;

// show a success message
Expand Down
17 changes: 1 addition & 16 deletions src/app/Library/CrudPanel/Traits/Read.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function enableBulkActions()
$this->addColumn([
'type' => 'checkbox',
'name' => 'bulk_actions',
'label' => ' <input type="checkbox" class="crud_bulk_actions_main_checkbox" style="width: 16px; height: 16px;" />',
'label' => ' <span style="display:flex"><input type="checkbox" class="crud_bulk_actions_main_checkbox" style="width: 16px; height: 16px; margin: 2px 0;" /></span>',
'priority' => 0,
'searchLogic' => false,
'orderable' => false,
Expand All @@ -166,20 +166,6 @@ public function enableBulkActions()
'visibleInShow' => false,
'hasActions' => true,
])->makeFirstColumn();

$this->addColumn([
'type' => 'custom_html',
'name' => 'blank_first_column',
'label' => ' ',
'priority' => 0,
'searchLogic' => false,
'orderable' => false,
'visibleInTabel' => true,
'visibleInModal' => false,
'visibleInExport' => false,
'visibleInShow' => false,
'hasActions' => true,
])->makeFirstColumn();
}

/**
Expand All @@ -190,7 +176,6 @@ public function disableBulkActions()
$this->setOperationSetting('bulkActions', false);

$this->removeColumn('bulk_actions');
$this->removeColumn('blank_first_column');
}

/**
Expand Down
Loading