Skip to content

Commit a371b14

Browse files
authored
Merge pull request #33 from Laravel-Backpack/dont-setup-filters-if-pro-is-not-available
Dont setup filters if Backpack/PRO is not available
2 parents 413902e + 1ed9cf1 commit a371b14

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ How does it all work? Well:
1717

1818
![](https://user-images.githubusercontent.com/1032474/205863022-827f3248-a9f3-4d05-896f-5fa7a40227be.gif)
1919

20-
20+
**NOTE**: The filters are a [Backpack\PRO](https://backpackforlaravel.com/products/pro-for-one-project) feature. If you don't have that package the filters won't be available.
2121
## Demo
2222

2323
Try it right now, in [our online demo](https://demo.backpackforlaravel.com/admin/activity-log). Edit some entities, and check the [activity logs](https://demo.backpackforlaravel.com/admin/activity-log).

src/Http/Controllers/ActivityLogCrudController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ protected function setupShowOperation()
154154
*/
155155
public function setupFilters()
156156
{
157+
if(! backpack_pro()) {
158+
return;
159+
}
160+
157161
/**
158162
* Causer Model
159163
*/

0 commit comments

Comments
 (0)