I have written a query in Laravel 5.2 as below, where I used scope. The scope scopeSubscriberCriteriaSearch have further sub scope. The scenario is
Laravel 5.2
scopeSubscriberCriteriaSearch