In my ViewLeaveRequest I added the getOnCompletionAction() function as described in the usage section.
When I click on a row or on the View button I get the error "Call to undefined method App\Models\LeaveRequest::shouldBeHidden()".
This happens on non aproved leave request and fully approved ones.
Any idea what went wrong? I imported ApprovableModel with use EightyNine\Approvals\Models\ApprovableModel;
Kr. Albert Oxener
In my ViewLeaveRequest I added the getOnCompletionAction() function as described in the usage section. When I click on a row or on the View button I get the error "Call to undefined method App\Models\LeaveRequest::shouldBeHidden()". This happens on non aproved leave request and fully approved ones. Any idea what went wrong? I imported ApprovableModel with use EightyNine\Approvals\Models\ApprovableModel; Kr. Albert Oxener