v0.12.0 - Fixed pagination

Fixed RolesController.php - Changes "User" to "Bruger"
Added æøåÆØÅ to roles pattern
Fixed bugs/mistakes
This commit is contained in:
Anders
2020-09-07 12:44:24 +02:00
parent 02527035c9
commit d4ac70de70
19 changed files with 37 additions and 31 deletions
@@ -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]);
}
}