Add greater than/less than search options #297

This commit is contained in:
Nabeel Shahzad
2019-05-10 16:03:04 -05:00
parent 1dae81b707
commit 5b061ba636
7 changed files with 69 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ use Flash;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Log;
use Prettus\Repository\Criteria\RequestCriteria;
use Prettus\Repository\Exceptions\RepositoryException;
/**
@@ -68,6 +69,7 @@ class FlightController extends Controller
try {
$this->flightRepo->pushCriteria(new WhereCriteria($request, $where));
$this->flightRepo->pushCriteria(new RequestCriteria($request));
} catch (RepositoryException $e) {
Log::emergency($e);
}