Commit 4fa38c12 authored by Francisco Fernandes Soares Neto's avatar Francisco Fernandes Soares Neto
Browse files

up not-paginate em formations

parent 19f4498c
Pipeline #4423 passed with stages
in 6 minutes and 3 seconds
......@@ -51,8 +51,13 @@ class FormationController extends Controller
Filter::exact('partner_id'),
Filter::exact('published'),
Filter::scope('favourited'),
])
]);
if($request->has('not-paginate')){
$formations = $queryFilter->get();
else{
->paginate($request->input('per_page', 10));
}
return new FormationCollection($formations);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment