Skip to content

Commit 1dad2d5

Browse files
committed
Merge branch 'fixes/php-warnings' into 3.x
2 parents 5064fbf + 962c29d commit 1dad2d5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Traits/ApiAncestryControllerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ trait ApiAncestryControllerTrait
2020
public function api()
2121
{
2222
// Make a copy of the parent class
23-
$class = get_parent_class();
23+
$class = get_parent_class($this);
2424
$parent = app($class);
2525

2626
// Copy over the packaged properties

src/Traits/FilterableRepositoryTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ trait FilterableRepositoryTrait
3737
'trashed' => false,
3838
];
3939

40+
/**
41+
* Filter properties
42+
*/
43+
public $order;
44+
public $sort;
45+
public $max;
46+
public $trashed;
47+
public $status;
48+
4049
/**
4150
* Relationships to load on resource.
4251
*

0 commit comments

Comments
 (0)