v0.12.0 - Fixed pagination
Fixed RolesController.php - Changes "User" to "Bruger" Added æøåÆØÅ to roles pattern Fixed bugs/mistakes
This commit is contained in:
@@ -31,7 +31,7 @@ class LocationController extends Controller
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$locations = Location::query()->paginate($request->input("limit", 20));
|
||||
$locations = Location::query()->paginate(20);
|
||||
|
||||
return Response::detect("locations.index", [ "locations" => $locations ]);
|
||||
}
|
||||
@@ -67,7 +67,7 @@ class LocationController extends Controller
|
||||
return redirect()->route("locations.index");
|
||||
else { // Else - Add it
|
||||
$location->save();
|
||||
$locations = Location::query()->paginate($request->input("limit", 20));
|
||||
$locations = Location::query()->paginate(20);
|
||||
return redirect()->route("locations.index", ['locations' => $locations]);
|
||||
}
|
||||
}
|
||||
@@ -119,7 +119,7 @@ class LocationController extends Controller
|
||||
$location->update($data);
|
||||
$location->save();
|
||||
|
||||
$locations = Location::query()->paginate($request->input("limit", 20));
|
||||
$locations = Location::query()->paginate(20);
|
||||
return redirect()->route("locations.index", ["locations" => $locations]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user