Domain\Dashboard\Http\DashboardController::index PHP Method

index() public method

public index ( )
    public function index()
    {
        return response()->json(['employees' => ['registers' => $this->employee->count(), 'deletes' => $this->employee->onlyTrashed()->count()], 'students' => ['registers' => $this->student->count(), 'deletes' => $this->student->onlyTrashed()->count()], 'teachers' => ['registers' => $this->teacher->count(), 'deletes' => $this->teacher->onlyTrashed()->count()]]);
    }
DashboardController