Skip to content

Commit

Permalink
Merge pull request #79 from boxfrommars/l-8
Browse files Browse the repository at this point in the history
Laravel 8 support
  • Loading branch information
boxfrommars authored Sep 13, 2020
2 parents 7c17a52 + 93fbf1e commit e179f10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ composer require rutorika/sortable
5.5 | 4.2.x
5.7 | 4.7.x
6.0 | 6.0.x
7.x | 7.x.x
7.x, 8.x | 8.x.x

## Sortable Trait

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
],
"require": {
"php": ">=7.2.5",
"illuminate/support": "^7.0"
"illuminate/support": "^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "~8",
"orchestra/testbench": "~5"
"orchestra/testbench": "~5|~6"
},
"autoload": {
"psr-0": {
Expand Down
1 change: 1 addition & 0 deletions src/Rutorika/Sortable/SortableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ protected function getValidator($sortableEntities, $request)

if (!class_exists($entityClass)) {
$rules['entityClass'] = 'required'; // fake rule for not exist field

return $validator->make($request->all(), $rules);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Rutorika/Sortable/SortableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
*
* @property string $sortableGroupField
*
* @method null creating($callback)
* @method null creating($callback)
* @method QueryBuilder on($connection = null)
* @method QueryBuilder where($column, $operator = null, $value = null, $boolean = 'and')
* @method float|int max($column)
* @method float|int max($column)
*/
trait SortableTrait
{
Expand Down

0 comments on commit e179f10

Please sign in to comment.