diff --git a/Modules/Employee/app/Repositories/EmployeeRepository.php b/Modules/Employee/app/Repositories/EmployeeRepository.php index c457287..01b1bb4 100644 --- a/Modules/Employee/app/Repositories/EmployeeRepository.php +++ b/Modules/Employee/app/Repositories/EmployeeRepository.php @@ -8,7 +8,7 @@ class EmployeeRepository implements EmployeeInterface { public function findAll() { - return Employee::get(); + return Employee::paginate(20); } public function getEmployeeById($employeeId) @@ -23,7 +23,6 @@ class EmployeeRepository implements EmployeeInterface public function create($employeeDetails) { - // dd($employeeDetails); return Employee::create($employeeDetails); } diff --git a/Modules/Employee/resources/views/index.blade.php b/Modules/Employee/resources/views/index.blade.php index baa1a40..ecca651 100644 --- a/Modules/Employee/resources/views/index.blade.php +++ b/Modules/Employee/resources/views/index.blade.php @@ -100,6 +100,13 @@ @endforeach +